xbmc icon indicating copy to clipboard operation
xbmc copied to clipboard

Amazon VOD error / corrupted video data

Open jjplano opened this issue 9 months ago • 15 comments


name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: ''


Addon used

  • [ X] Amazon VOD (plugin.video.amazon-test)
  • [ ] Browser Launcher (plugin.program.browser.launcher)
  • Addon version: 1.1.5+matrix.1

Account type

  • [ X] primevideo.com
  • [ ] amazon.(com/co.uk/de/jp)

System Setup (please provide the following information):

  • Hardware: raspberry pi 3b+
  • OS version: libreELEC 11.0.6
  • Kodi version number: 20.3.0

Upload Logs

https://paste.libreelec.tv/distinct-baboon.log

Describe the bug

I'm in South America. this week the addon suddenly stopped working and started giving errors like "corrupted video data" and "Amazon VOD error". you can enter past that and see the menu, but when you want to enter one like "continue watching" you receive the same errors, and when selecting a show, all you see there instead of the season number, is items like "amzn1.dv.gti.3261..." when you select a category like "comedy movies" or almost any other, it keeps loading pages infinitely, showing pages numbers by the hundreds or thousands, and when you cancel that you receive a "connection error" if a category show movies, when you try to play any, you receive "unable to play, product not purchased" tried clear both data and video cache, tried reloggin, tried uninstalling and erasing everything, rebooting, installing and loggin, the same happens. prime app on Android work just fine with the user on several devices, same on prime web page.

jjplano avatar Mar 30 '25 03:03 jjplano

The same error is happening;

2025-04-03 15:52:44.311 T:17028   error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--                                                                      - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!                                                                Error Type: <class 'TypeError'>                                                                                 Error Contents: '<' not supported between instances of 'NoneType' and 'str'                                                                                             Traceback (most recent call last):                                                                                File "/storage/.kodi/addons/plugin.video.amazon-test/default.py", line 9, in <module>                                                                                     EntryPoint(argv)                                                                                              File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 92, in EntryPoint                                                                    Search(args.get('searchstring'))                                                                              File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 108, in Search                                                                       _g.pv.Search(searchString)                                                                                    File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 639, in Search                                                                       self.Browse('search', True)                                                                                   File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 459, in Browse                                                                       node, breadcrumb = self._TraverseCatalog(path)                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 155, in _TraverseCatalog                                                             self._LazyLoad(node[nodeName], pathList[0:1 + i])                                                             File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 1516, in _LazyLoad
                                                       self._Flush(bFlushCacheData=False, bFlushVideoData=True)                                                      File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 79, in _Flush                                                                        json.dump(self._videodata, fp, indent=2 if bPretty else None, separators=None if bPretty else (',', ':'), sort_keys=True)                                                                                                     File "/usr/lib/python3.11/json/__init__.py", line 179, in dump                                                                                                          File "/usr/lib/python3.11/json/encoder.py", line 432, in _iterencode                                                                                                    File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
                                                     File "/usr/lib/python3.11/json/encoder.py", line 354, in _iterencode_dict                                                                                             TypeError: '<' not supported between instances of 'NoneType' and 'str'
                                                   -->End of Python script error report<--
                                                        2025-04-03 15:52:44.975 T:17027   error <general>: GetDirectory - Error getting plugin://plugin.video.amazon-test/?mode=Search                                          2025-04-03 15:52:44.990 T:976     error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.amazon-test/?mode=Search) failed

stu2005 avatar Apr 03 '25 06:04 stu2005

I would love to know if it's a "me problem" or if it has something to do with prime constantly making changes to their platform. such a bitchy streaming service...

jjplano avatar Apr 08 '25 01:04 jjplano

We're having similar problems (Australia), performing a Search after the dialog box comes up causes the same error to appear. If we scroll down to the bottom of a category that does list shows and hit Next Page, we get the same error.

Clearing Cache & Data does not help, however if shows are listed in "Continue watching" or other categories they seem to play OK.

I'm sure it'll be some random change Prime has made to screw stuff up.

yrp888 avatar Apr 09 '25 05:04 yrp888

I'm facing a similar problem with a single TV Series (One Piece, Italian PrimeVideo). It occurred the first time with Season 4 specifically. Forcing a refresh or clearing the plugin's cache does not help.

A more detailed description: here.

k3rnel-p4nic avatar Apr 09 '25 19:04 k3rnel-p4nic

Today, for some reason we can't access anything using the Website connection, however the Android connection works fine.

yrp888 avatar Apr 11 '25 07:04 yrp888

Can you please try the beta version from this post: https://github.com/Sandmann79/xbmc/issues/779#issuecomment-2795208852

Sandmann79 avatar Apr 11 '25 09:04 Sandmann79

Can you please try the beta version from this post: #779 (comment)

this seems to have resolved this issue for me, thanks for the hard work!

that being said, the addon keeps having (at least for me) the same issues as before: failed playback of random titles, you have to keep trying until it plays. also, entering a submenu to see the content (any, like "top movies", "tv whatever", etc.) take FOREVER to load, several minutes of loading pages, until it finally shows you the content. I don't know if this is inevitable (no other streaming service works like this on kodi), I haven't messed with the configuration really. thanks again!

jjplano avatar Apr 11 '25 20:04 jjplano

Can you please try the beta version from this post: #779 (comment)

I installed 1.1.6-beta1 on the NUC that is not often used. When I opened the app I was able to see the categories and perform a search without the "corrupted video data" crashing as before, so I didn't try the Next Page test. This NUC was kept on the website source.

However

  1. Multi-season TV shows only have 1 season available (other seasons listed are empty) until a Refresh is performed on each show. Clearing Cache & Data does not help
  2. When trying to watch a show for the first time after installing the beta the Kodi wanted to update Widevine, which I installed. But everything I tried to play on Amazon VOD rebooted the Kodi shortly after showing the Playing thing in the top RH corner.
  3. Other streaming apps worked fine except for one which also rebooted the Kodi when playing anything.

I pasted some crash logs but I found a way to change the Widevine version in the other app. Looks like Widevine Linux x86_64-4.10.2891.0 must have a problem. Using the other app I reinstated v4.10.2830.0 which allow both that app and Amazon VOD to start playing videos without crashing (tested maybe 5 shows for about 10 seconds), so far so good!

I didn't experience undue delays going into different categories.

On a side note, she wanted to see if the LG TV Amazon app could find the show she was searching for (it's not available in Aus) but she said the LG Amazon app needed updating first. So they have done something to screw things up, as usual ... What she did comment on is how much she hates the LG Amazon app compared to the very simple UX of Kodi app!

Thanks for your ongoing efforts Sandmann79

yrp888 avatar Apr 12 '25 00:04 yrp888

@jjplano did you have pagination activated for all content at Settings - Data source?

@yrp888

  1. This is not the intended behavior. Normally all seasons are displayed (although without info) and as soon as a season is entered, the episode list should be loaded from the server. I'll have to have a look at that.
  2. Look at Issue #781

Sandmann79 avatar Apr 15 '25 07:04 Sandmann79

@jjplano did you have pagination activated for all content at Settings - Data source?

@Sandmann79 hi! no, no pagination activated whatsoever in the settings. trying to see the content of any category loads several pages, and can sometimes take up to 5 minutes or more, if it is a category with many items

jjplano avatar Apr 16 '25 06:04 jjplano

@jjplano if you activate it, two pages are loaded at most.

Sandmann79 avatar Apr 16 '25 10:04 Sandmann79

yeap, that did it. thanks dude!

El mié, 16 abr 2025 a la(s) 7:49 a.m., Sandmann79 @.***) escribió:

@jjplano https://github.com/jjplano if you activate it, two pages are loaded at most.

— Reply to this email directly, view it on GitHub https://github.com/Sandmann79/xbmc/issues/780#issuecomment-2809196481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGD4QI3FUTNLR4LA2TV2YL2ZYYVNAVCNFSM6AAAAAB2CB2NLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBZGE4TMNBYGE . You are receiving this because you were mentioned.Message ID: @.***> Sandmann79 left a comment (Sandmann79/xbmc#780) https://github.com/Sandmann79/xbmc/issues/780#issuecomment-2809196481

@jjplano https://github.com/jjplano if you activate it, two pages are loaded at most.

— Reply to this email directly, view it on GitHub https://github.com/Sandmann79/xbmc/issues/780#issuecomment-2809196481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGD4QI3FUTNLR4LA2TV2YL2ZYYVNAVCNFSM6AAAAAB2CB2NLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBZGE4TMNBYGE . You are receiving this because you were mentioned.Message ID: @.***>

jjplano avatar Apr 19 '25 22:04 jjplano

1. This is not the intended behavior. Normally all seasons are displayed (although without info) and as soon as a season is entered, the episode list should be loaded from the server. I'll have to have a look at that.

Today I updated from 1.1.6 beta1 to 1.1.6 release but when opening any TV series it still only shows S1 episodes, the remaining seasons are empty until refreshed. Not urgent, we can refresh if required.

After upgrading from beta to release every item in the main screen was duplicated but after restarting the Kodi it was back to normal. I began checking the empty seasons after the reboot.

2. Look at Issue [Playback not possible with Widevine CDM version 4.10.2891.0 #781](https://github.com/Sandmann79/xbmc/issues/781)

I noted that 4.10.2891.0 was failing before this and had already restored a previous version.

yrp888 avatar Apr 20 '25 05:04 yrp888

This issue has been marked as stale because there has been no activity for more than 6 months. If no update is made, this issue will be closed in 14 days.

github-actions[bot] avatar Oct 17 '25 12:10 github-actions[bot]

1. This is not the intended behavior. Normally all seasons are displayed (although without info) and as soon as a season is entered, the episode list should be loaded from the server. I'll have to have a look at that.

A series still requires a refresh when season folders are showing without episodes. Required if a clear cache/data happens.

Commenting to prevent auto close.

@Sandmann79 should this go into a new Issue as it's unrelated to the original report?

yrp888 avatar Oct 17 '25 21:10 yrp888