Sandmann79 / xbmc

Prime Video Addon for Kodi Media Center
https://forum.kodi.tv/showthread.php?tid=349255
GNU General Public License v3.0
759 stars 193 forks source link

AMAZON VOD addon keeps on updating programs and movies #304

Closed Tarun75 closed 4 years ago

Tarun75 commented 5 years ago

Hi ,

I am in India ,I started facing the issue couple of days back. I have installed AMAZON VOD on Kodi 18, LibreElec 9.0 version, update #209 from Millhouse 9. I am using Rpi 3+ platform .When I click TV programs folder, the AMAZON VOD displays message on top Right corner of Screen "Found XXXXX" , seems it tries to updated program list. But this goes on and I am not able to explore any programs and movies in the folder. Please help .

Varstahl commented 5 years ago

Just let it finish?

Tarun75 commented 5 years ago

left it for hours but still the same.

Varstahl commented 5 years ago

If anything went wrong you can back out, close kodi, delete the .pvcp file (not the .pvdp) file and try again.

Tarun75 commented 5 years ago

Deleted .pvcp file but the problem persists. Is there a way to stop the update of catalog and to browse folders for movies and programs. It does not allow to browse the contents.

Varstahl commented 5 years ago

You can press Escape at any time and go back.

sheldonmaschmeyer commented 5 years ago

In Canada at least, every time I click something, such as "Action and adventure movies" it starts the Amazon VOD Found... notifications which can take some time. It would be nice to have an option to pre-download all the information at once, perhaps in the background, and have it update at a predefined time such as daily, every three days, once a week or, manually. Kinda like a database. It is a great add-on app otherwise but, not as quick as the YouTube or Netflix apps. Just needs download scheduling similar to a TV guide update.

Varstahl commented 5 years ago

Technically it's planned, but at the moment there are other priorities.

Also, it's easy with YouTube and Netflix, because the way they sort stuff around makes actual sense, contrary to what Amazon provides.

Nautigsam commented 5 years ago

Well... I'm afraid that you don't understant that this makes the plugin completely unusable so maybe it should be of higher priority.

Varstahl commented 5 years ago

Well, I'm afraid that you don't understand that I'm the only developer keeping the addon alive to the best of my abilities with the little time I have at my disposal, so maybe you should just use a browser. Just sayin'.

There have been several changes in the amazon backend, last of which happened a week ago or so, it literally makes no sense to fix this issue that admittedly plagues a small number of users, when most of the scraping has to be completely thrown out of the window. I was planning to do it from quite a while, but since Amazon started blocking legitimate PC users from watching anything 720p and up, I kind of let this in maintenance mode, especially since I'm the last dev standing.

So, sorry if my/the project priorities are not aligned with yours, but that's how it is.

Varstahl commented 5 years ago

If someone feels brave enough to try, I have a (mostly) working PoC live on my fork. You can grab primevideo.py from here and replace it in your addon installation. You should probably backup your cache files as well if you want to be able to revert, since the new version will wipe out all cache.

Some numbers (which I'm quite proud of):

In the worst case scenario, you're still looking at improvements by at least an order of magnitude.

The prototype is still rough around the edges, for some reason I appear to have broken the Watchlist, but everything else should be working fine and the loading speed are so faster it's insane. Feedback about current problems with it is very welcome.

Varstahl commented 5 years ago

Interesting. Didn't happen for me but I guess a few of the problems I solved in the previous version and decided not to address in this one could cause issues, or maybe it's just a metadata parsing problem. I'll check when I can, thanks for reporting.

irfus commented 5 years ago

Replacing with the primevideo.py fails, with the following errors in the log, when searching or listing any page.

`2019-07-23 22:05:09.760 T:1151357808 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

Varstahl commented 5 years ago

You need to delete both caches, .pvcp and .pvdp from addon data.

irfus commented 5 years ago

Happens with a fresh install of the addon, replacing the file before first use.

Varstahl commented 5 years ago

Well, it will be fixed in time, it's pre-alpha for a reason :D

irfus commented 5 years ago

I can post debug logs, if required.

Varstahl commented 5 years ago

Won't be useful, I might have already fixed it on changes I didn't publish yet, will ask if needed.

harshgandhi commented 4 years ago

Hi. Installed the plugin today. Using Indian prime video. Opening any Section such as Movies starts loading pages. I get a notification 'loading page xx'. Keeps doing this for a few hours. Haven't got till the end as I'm currently at page 30. Is this a known issue? Can this be bypassed?

Varstahl commented 4 years ago

Ugh, must be a bad connection. There are several methods planned but didn't make the cut yet. The next feature will be proper pagination, so that will reduce the strain heavily.

federicodisante commented 4 years ago

Hi @Varstahl. I was experiencing the same problem of @harshgandhi. I'm from Italy. I installed the add on in LibreElec 9.2 from @Sandmann79 repository. Follows the head of the addon.xml file.

<addon id="plugin.video.amazon-test" name="Amazon VOD" version="0.8.1" provider-name="Sandmann79, Varstahl"

Varstahl commented 4 years ago

@federicodisante as I said on new installations there's some heavy caching to do, so it's relatively normal that loading new sections, especially with lots of results, takes a bit of time. On slow ADSL connections, it can take a lot of time, the first time around, but from the second run forth it should be faster. Atm there's no way around it, until I code something for slower connections.

Unless no results show and "eventually" everything gets loaded (even if on slow connections you might need to enter the directory twice) then it's working as intended.

federicodisante commented 4 years ago

@Varstahl Thank you for your work on the add on and for you quick replay! Have a good 2020 !