Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon VOD error only for TV Show list #186

Closed
ameetmd opened this issue Oct 10, 2018 · 11 comments
Closed

Amazon VOD error only for TV Show list #186

ameetmd opened this issue Oct 10, 2018 · 11 comments

Comments

@ameetmd
Copy link

@ameetmd ameetmd commented Oct 10, 2018

As suggested, opening a new issue on Amazon VOD error appearing for TV Show listing only. Tested using RPi3B+ running OSMC with Kodi 18.0-BETA2 having Amazon VOD v0.5.9 add-on from India location.

Post reading other issues on this subject, following has been already tried with no success -

  1. Exited Kodi. Cleared catalog & videodata file from /.kodi/userdata/addon_data/plugin.video.amazon-test/. Rebooted and added the Amazon account till it confirmed I was logged in.
  2. TV Show list give Amazon VOD Error; kodi.log for TV show listing error is as attached. TV Shows Log.txt
  3. Basis #180 (comment) discussion, copied /catalog/GetPlaybackResources? into the browser however the connection times out. FYI, /catalog/GetPlaybackResources? for Movie & TV Show list is the same & only the query string is different. Pasting both links in the browser eventually results in time out.

To reiterate, movie list takes some time to display the first time, thereafter, they appear & play normally. Any assistance on getting TV Show listing to work will be helpful. Thanks in advance.

@Varstahl

This comment has been minimized.

Copy link
Collaborator

@Varstahl Varstahl commented Oct 10, 2018

The problem is that it must work. If that doesn't work, then the entire plugin would result empty. Are you sure you copy pasted the URL correctly? It must include all parameters found in the GET query.

Also, pay attention because the log you provided has portions missing, for example the URL is cut at a certain length.

@ameetmd

This comment has been minimized.

Copy link
Author

@ameetmd ameetmd commented Oct 11, 2018

Yes, the attached logs may have been incomplete but i got it while diagnosing. Refer below

  1. TV List URL - https://atv-ps-eu.primevideo.com/cdp/catalog/GetPlaybackResources?asin=amzn1.dv.gti.5aac37fb-9be0-bd23-94ac-dc557388b134&deviceTypeID=AOAGZA014O5RE&firmware=1&deviceID=79f6be88f753ba56fc9db36a6fc7a1319becf21e74c9524c10480a33&marketplaceID=A2MFUE2XK8ZSSY&format=json&version=1&gascEnabled=true&resourceUsage=ImmediateConsumption&consumptionType=Streaming&deviceDrmOverride=CENC&deviceStreamingTechnologyOverride=DASH&deviceProtocolOverride=Https&deviceBitrateAdaptationsOverride=CVBR%2CCBR&audioTrackId=all&videoMaterialType=Feature&desiredResources=CatalogMetadata&titleDecorationScheme=primary-content

  2. Movie URL - https://atv-ps-eu.primevideo.com/cdp/catalog/GetPlaybackResources?asin=amzn1.dv.gti.86b2b69c-7ec3-edda-384c-df56d5d48190&deviceTypeID=AOAGZA014O5RE&firmware=1&deviceID=79f6be88f753ba56fc9db36a6fc7a1319becf21e74c9524c10480a33&marketplaceID=A2MFUE2XK8ZSSY&format=json&version=1&gascEnabled=true&resourceUsage=ImmediateConsumption&consumptionType=Streaming&deviceDrmOverride=CENC&deviceStreamingTechnologyOverride=DASH&deviceProtocolOverride=Https&deviceBitrateAdaptationsOverride=CVBR%2CCBR&audioTrackId=all&videoMaterialType=Feature&desiredResources=CatalogMetadata&titleDecorationScheme=primary-content

As you can see the domains are identical & only query varies. Being the noob here & agreeing to your statement that it should work; I will carry out a fresh install on an SD card & revert with my observations shortly. Thank you

@Varstahl

This comment has been minimized.

Copy link
Collaborator

@Varstahl Varstahl commented Oct 11, 2018

If the TV list URL is the one immediately before the crash in the logs, open it in a browser, and copy the JSON somewhere. Since it's geo/location based, I can't access the version you see just as you can't access the version I see. If I don't have your version of the data, I can't understand where's the problem.

@Varstahl

This comment has been minimized.

Copy link
Collaborator

@Varstahl Varstahl commented Oct 11, 2018

Also, note, that the current version of PrimeVideo changed and broke again, you need to update primevideo.py with the one in the master.

@L0r3n20

This comment has been minimized.

Copy link

@L0r3n20 L0r3n20 commented Oct 13, 2018

Same issue in Italy. I reversed Amazon VOD to 0.5.7 as instructed. Now movie list is populated and playable while I get an error opening TV shows list. My log is similar to the ones already posted.

@Varstahl

This comment has been minimized.

Copy link
Collaborator

@Varstahl Varstahl commented Oct 14, 2018

@L0r3n20 I'm not going to support 0.5.7, but if you're experiencing similar problems with 0.5.9, feel free to follow the instructions I gave to @ameetmd and provide the necessary JSON I asked for.

@M0RN3S1

This comment has been minimized.

Copy link

@M0RN3S1 M0RN3S1 commented Oct 15, 2018

I have a similar problem where I get an Amazon VOD error appearing for TV Show listings only. The Movie listing works fine though, and the search function works as a workaround to get to the TV Show you want to watch. I am in South Africa BTW. I have already cleared the Cache. It did not resolve the problem though. BTW, I am a newby when it comes to anything Linux and Kodi.
kodi.log

@Varstahl

This comment has been minimized.

Copy link
Collaborator

@Varstahl Varstahl commented Oct 15, 2018

@M0RN3S1 completely different problem, and no error on your end. Try reverting to 0.5.7, instructions here.

@jmgarcia

This comment has been minimized.

Copy link

@jmgarcia jmgarcia commented Oct 16, 2018

Hi @Varstahl I have a similar problem.
I use your plugin from Barcelona (Spain), Tested using RPi3B+ running Libreelec with Kodi 18.0-BETA2 having Amazon VOD v0.5.9 add-on.
Cache cleaned, and lastest version of primevideo.py.
When I try to load contents of TV Show I have this error:

10:59:50.591 T:1510212464 NOTICE: [Amazon VOD] postURL: https://atv-ps-eu.primevideo.com/cdp/catalog/GetPlaybackResources?asin=amzn1.dv.gti.40abea3d-c167-a69d-5bc8-4fa88180d9f0&deviceTypeID=AOAGZA014O5RE&firmware=1&deviceID=e7c46833ea2687fd35faf2209f3bbe94fbf8e10907eb425fd0937f34&marketplaceID=A3K6Y4MI8GDYMT&format=json&version=1&gascEnabled=true&resourceUsage=ImmediateConsumption&consumptionType=Streaming&deviceDrmOverride=CENC&deviceStreamingTechnologyOverride=DASH&deviceProtocolOverride=Https&deviceBitrateAdaptationsOverride=CVBR%2CCBR&audioTrackId=all&videoMaterialType=Feature&desiredResources=CatalogMetadata&titleDecorationScheme=primary-content 10:59:56.551 T:1510212464 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.AttributeError'> Error Contents: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.amazon-test/default.py", line 5, in <module> EntryPoint() File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 83, in EntryPoint g.pv.Browse(None if 'path' not in args else args['path']) File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/primevideo.py", line 188, in Browse self._LazyLoad(node, nodeName) File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/primevideo.py", line 644, in _LazyLoad self._videodata[refUrn]['title'] = Unescape(title.group(1)) AttributeError: 'NoneType' object has no attribute 'group' -->End of Python script error report<--
That's the JSON return in Browser:

{"error":{"errorCode":"PRS.InvalidRequest","message":"Cannot complete request.","type":"PRSInvalidRequestException"}}

When I try to obtanin any movie category content, allways have a empty list, this is the request:

https://www.primevideo.com/ref=atv_hm_nxt_2?_encoding=UTF8&contentId=home&contentType=tv&page=2&pageSize=14&serviceToken=eyJ0eXBlIjoidnBhZ2UiLCJuYXYiOmZhbHNlLCJzZWMiOiJjZW50ZXIiLCJwcmlkIjoiN2Q0OGZhMWUtYzQ1ZS00ZDMxLWE5NzQtNWVjMTc1OGI4MjYwIiwiZmlsdGVyIjp7fSwicmFuayI6Ikg0c0lBQUFBQUFBQUFDWFBTdzZFSUJBRTBBdTVBQlJSZHpnSXFJRDhGUEQrQjVtQXkzcEpWYWZoQW52RDNwS1lIT04weXc0dWtJeERQTUs0ZWkxQXpUQy9nZnRIM0E2anFZSm1zMERZT3BIMVVUUGlwNkpFRlIvd3RMY0c5ZFNZeERYMmFtdUFodXlQN2JIbEI2NEtETG45N1hlL0lWcmFCRG5aVEUzVW1QQ3ZBZmdjazdoKy9MaS9Jekx4cEIvSmJyekdDdE5xaWppekdyRnVFM0MxZGhZQkRJejQ5Z2RTeWUxWkd1Z3lDeFY2d0xGVkhHQy9YYWo3QTMyeDVYdjdBQUFBIiwib2Zmc2V0IjowLCJzeXMiOlsiQ01TX1QxIl0sIm5wc2kiOjB9

Any Idea? do you need more data?

Thanks for your time!

@M0RN3S1

This comment has been minimized.

Copy link

@M0RN3S1 M0RN3S1 commented Oct 16, 2018

@M0RN3S1 completely different problem, and no error on your end. Try reverting to 0.5.7, instructions here.

Thank you! That seems to have fixed the issue. Thanks for all your good work.

@ameetmd

This comment has been minimized.

Copy link
Author

@ameetmd ameetmd commented Oct 17, 2018

I did a fresh install & all isues have got resolved. Difference being after updating plugin to v0.5.9, I opened every category of movie & TV show lists [Yes! I have a lot of free time :)]. Once the indexing was done, only then did I click on a video/TV show and allow Widevine CDM install. It is about a week now & all good; am not sure what went wrong but it is not related to geo-location. Am assuming something is going wrong at time of plugin update; I could be absolutely wrong though.

This is not relevant here but as an FYI, I did a fresh install on an extra SD card with LibreElec v8.90.005 & that too is working on v0.5.9. Followed the exact procedure as stated above with only difference being LibreElec needed a reboot after Widevine CDM install. Thank you.

@Varstahl

This comment has been minimized.

Copy link
Collaborator

@Varstahl Varstahl commented Oct 17, 2018

Glad it worked :)

@Varstahl Varstahl closed this Oct 17, 2018
@jmgarcia

This comment has been minimized.

Copy link

@jmgarcia jmgarcia commented Oct 17, 2018

Closed? Sorry but I do not understand the solution.
Should I uninstall the plugin? or I must also uninstall the inputstream or the dependencies of the plugin.
Once uninstalled, do I install from the repository? and then, from what I understand, I must enter all categories of series and movies before executing a video?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.