Comments (15)
Can confirm. Work on it when back from vacation.
from xbmc.
Adding this line fixes it for me:
--- web_api-orig.py 2024-05-28 14:13:48.329176979 +0200
+++ web_api.py 2024-05-28 14:14:22.586854740 +0200
@@ -1445,6 +1447,7 @@
q = ['{}={}'.format(k.replace('paginationServiceToken', 'serviceToken').replace('paginationStartIndex', 'startIndex'), ','.join(v) if isinstance(v, list) else quote_plus(str(v)))
for k, v in vo.items() if k in ['collectionType', 'paginationServiceToken', 'paginationTargetId', 'tags', 'paginationStartIndex']]
q.append('pageSize=20&pageType=browse&pageId=default')
+ q.append('&isCleanSlateActive=1&isDiscoverActive=1&isLivePageActive=1&variant=desktopLinux&actionScheme=default&payloadScheme=default&decorationScheme=web-search-decoration-tournaments-v2&featureScheme=web-search-v4&dynamicFeatures=integration&dynamicFeatures=CLIENT_DECORATION_ENABLE_DAAPI&dynamicFeatures=ENABLE_DRAPER_CONTENT&dynamicFeatures=HorizontalPagination&dynamicFeatures=CleanSlate&dynamicFeatures=EpgContainerPagination&dynamicFeatures=ENABLE_GPCI&dynamicFeatures=SupportsImageTextLinkTextInStandardHero&widgetScheme=web-explorecs-v11&journeyIngressContext=&isRemasterEnabled=0')
if 'collectionType' not in q:
q.append('collectionType=Container')
nextPage = '/gp/video/api/paginateCollection?' + '&'.join(q)
from xbmc.
Same problem here.
from xbmc.
I did a quick look at the source code of my watchlist on primevideo.com and it seems that startIndex is now called paginationStartIndex in the url
from xbmc.
Adding this line fixes it for me:
Thanks, I works for me too.
from xbmc.
I add the line after
q.append('pageSize=20&pageType=browse&pageId=default')
q.append('&isCleanSlateActive=1&isDiscoverActive=1&isLivePageActive=1&variant=desktopLinux&actionScheme=default&payloadScheme=default&decorationScheme=web-search-decoration-tournaments-v2&featureScheme=web-search-v4&dynamicFeatures=integration&dynamicFeatures=CLIENT_DECORATION_ENABLE_DAAPI&dynamicFeatures=ENABLE_DRAPER_CONTENT&dynamicFeatures=HorizontalPagination&dynamicFeatures=CleanSlate&dynamicFeatures=EpgContainerPagination&dynamicFeatures=ENABLE_GPCI&dynamicFeatures=SupportsImageTextLinkTextInStandardHero&widgetScheme=web-explorecs-v11&journeyIngressContext=&isRemasterEnabled=0')
but same error
2024-05-29 20:00:24.927 T:1364 info : [Amazon VOD] Refresh params: ({'title': 'Serien', 'lazyLoadURL': '/gp/video/mystuff/watchlist/tv/ref=atv_hm_hom_c_9zZ8D2_mys_wl?episodeListSize=9999', 'pos': 5}, ['root', 'Watchlist', 'watchlist', 'tv'], False)
2024-05-29 20:00:47.122 T:1364 error : [Amazon VOD] Error reason: 400 error (NoRetries)
2024-05-29 20:00:47.124 T:1364 error : [Amazon VOD] Unable to fetch the url: /gp/video/api/paginateCollection?serviceToken=eyJ0eXBlIjoiaHBhZ2UiLCJuYXYiOmZhbHNlLCJzZWMiOiJjZW50ZXIiLCJwcmlkIjoiOTE5ZDc5MjctODMxNy00OTg4LTkyMzQtYTI2YzhlMGVhMGE2IiwiZmlsdGVyIjp7IlRWIjpbXX0sIm9mZnNldCI6MCwibnBzaSI6MjAsIm9yZXEiOiJlZjAwN2QyMi01YzBjLTQwNDktYWUxYy01ZDU2YjVlOTQwODQ6MTcxNzAwNTYyNTAwMCIsImFwTWF4Ijo5Nywic3RyaWQiOiIxOjExQU5XTkpQVDdaUEJSIyNNWlFXR1pMVU1WU0VHWUxTTjUyWEdaTE0iLCJvcmVxayI6IlAvNStDbmFlbzIyL3JLdjNyQlFJRjlNdmFNdG0ydDNHSWJQMmFUWmQwMXM9Iiwib3JlcWt2IjoxfQ%3D%3D&startIndex=20&paginationTargetId=V2%3D4AEA6u69gYPeuYe-toZwYWdlSWSIcGFnZVR5cGWMY29sbGVjdGlvbklkiHdpZGdldElkjo5zd2lmdElkVmVyc2lvbt7EiolXYXRjaGxpc3SLhGhvbWWMjqoxOjExQU5XTkpQVDdaUEJSIyNNWlFXR1pMVU1WU0VHWUxTTjUyWEdaTE2ND46CVjI%3D&pageSize=20&pageType=browse&pageId=default&collectionType=Container
2024-05-29 20:00:54.423 T:1364 info : [Amazon VOD] Version: 1.0.6+matrix.1
from xbmc.
@mlc42 From the log, you don't have the latest version: the latest is 1.0.7~beta1.
Update first to the latest version and then add the line
from xbmc.
@cpassuel thank you, but i can´t find a python 3 version 1.0.7 for matrix.
from xbmc.
@mlc42 I don't know if it's the same for the matrix version, but I updated manually my leia version from the git repo as the plugin was not updated automatally.
If you're on Libreelec on Pi and you know a bit of linux, here is a script (beware not fully tested but gives you the steps) to update directly from the master branch on git repo
# Remove compiled files to reduce archive size
find /storage/.kodi/addons/plugin.video.amazon-test/ -type f -name '*.pyo' -delete
# Archive existing version
#TODO change destination folder
# zip -r /tmp/avod_$(date +"%Y%m%d%H%M%S").zip /storage/.kodi/addons/plugin.video.amazon-test/*
# Download code from xbmc repo
curl https://codeload.github.com/Sandmann79/xbmc/zip/refs/heads/master --output /tmp/avod.zip
# Unzip Amazon VOD
unzip /tmp/avod.zip xbmc-master/plugin.video.amazon-test/* -d /tmp
# Copy to addons folder
cp -r /tmp/xbmc-master/* /storage/.kodi/addons/
# Clean up - delete archive and extract folder
rm /tmp/avod.zip
rm -r /tmp/xbmc-master/*
from xbmc.
thank you, but this version uses python 2. So i´ve to wait for a new version
from xbmc.
It is not necessary to update to beta 1, as there is currently no difference between stable and beta in the code.
from xbmc.
now the fix works in matrix
thank you all
from xbmc.
Sorry for sounding a bit stupid but how do I apply the fix?
from xbmc.
I´ve changed source in addon folder storage/.kodi/addons/plugin-amazon-test/resoures/lib/web_api.py.
I use WinSCP to edit.
Lines 1444-1452 now lokks like this
elif 'paginationTargetId' in vo:
q = ['{}={}'.format(k.replace('paginationServiceToken', 'serviceToken').replace('paginationStartIndex', 'startIndex'), ','.join(v) if isinstance(v, list) else quote_plus(str(v)))
for k, v in vo.items() if k in ['collectionType', 'paginationServiceToken', 'paginationTargetId', 'tags', 'paginationStartIndex']]
q.append('pageSize=20&pageType=browse&pageId=default&variant=desktopWindows&actionScheme=default&payloadScheme=default \
&decorationScheme=web-search-decoration-tournaments-v2&featureScheme=web-search-v4&dynamicFeatures=HorizontalPagination&widgetScheme=web-explorecs-v11')
if 'collectionType' not in q:
q.append('collectionType=Container')
nextPage = '/gp/video/api/paginateCollection?' + '&'.join(q)
from xbmc.
Thanks for your prompt response @mlc42 - it looks like 1.07 has been released so I'll try updating to that first.
Update - installed 1.07 on two NUCs and problem solved. Thanks to @Sandmann79 as always for your efforts!
from xbmc.
Related Issues (20)
- Again the same problem! unable to find the navigation menu for https://www.primevideo.com HOT 1
- First Audiotrack selected by default HOT 2
- Login error - Unknown Error HOT 2
- Error switching to next episode HOT 1
- Genre Lists are empty and Prime folders are gone HOT 2
- HTTP Error on playback HOT 1
- Impossible de lancer une video HOT 1
- When trying to play a movie "http error" message appears HOT 1
- Error when opening a tv show folder using the website api HOT 6
- Playback Failed: One or more items failed to play, on all videos HOT 3
- error in fetching 'Watchlist' HOT 10
- Cannot access to tv shows watchlist HOT 3
- AttributeError: 'bool' object has no attribute 'get' HOT 2
- When launching the app, get error "Amazon VOD error. Check the log for more information" HOT 4
- Audio bug? HOT 4
- Amazon - unable to get content HOT 1
- Unable to fetch the url: /gp/video/api/paginateCollection
- "Content not paid" messages for some files in Amazon VOD HOT 2
- No 5.1 audio tracks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbmc.