Git Product home page Git Product logo

Comments (15)

Sandmann79 avatar Sandmann79 commented on June 25, 2024 2

Can confirm. Work on it when back from vacation.

from xbmc.

Paco8 avatar Paco8 commented on June 25, 2024 2

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.

Paco8 avatar Paco8 commented on June 25, 2024

Same problem here.

from xbmc.

cpassuel avatar cpassuel commented on June 25, 2024

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.

cpassuel avatar cpassuel commented on June 25, 2024

Adding this line fixes it for me:

Thanks, I works for me too.

from xbmc.

mlc42 avatar mlc42 commented on June 25, 2024

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.

cpassuel avatar cpassuel commented on June 25, 2024

@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.

mlc42 avatar mlc42 commented on June 25, 2024

@cpassuel thank you, but i can´t find a python 3 version 1.0.7 for matrix.

from xbmc.

cpassuel avatar cpassuel commented on June 25, 2024

@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.

mlc42 avatar mlc42 commented on June 25, 2024

@cpassuel

thank you, but this version uses python 2. So i´ve to wait for a new version

from xbmc.

Sandmann79 avatar Sandmann79 commented on June 25, 2024

It is not necessary to update to beta 1, as there is currently no difference between stable and beta in the code.

from xbmc.

mlc42 avatar mlc42 commented on June 25, 2024

now the fix works in matrix
thank you all

from xbmc.

yrp888 avatar yrp888 commented on June 25, 2024

Sorry for sounding a bit stupid but how do I apply the fix?

from xbmc.

mlc42 avatar mlc42 commented on June 25, 2024

@yrp888

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.

yrp888 avatar yrp888 commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.