-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
New API endpoints #279
Comments
It's also possible to get the listings of the sections in the home page (the "see more" links) using that search URL, passing the queryToken from those links. |
Neat. Had stuff to do with new servers and technologies, I still plan to take a deep look at this, it might just take me a while to get my other stuff done first. |
I just started working on this, wip branch located here. Let's see where this bumpy ride leads us, hopefully to significantly faster load times. |
So… found a few nice points:
So this means that:
So, at this point, is it even worth the time? Also, while doing a bit of reversing I found the following homepages, not available everywhere:
Honestly the API don't seem very useful so far, although they have a couple nice features we can't simply use them. Which begs the question why change in the first place, aside the fact it's currently still a mess. Don't know, I'll sleep on it. Edit: actually the home pages have the JSON embedded in a Edit 2: menu is embedded in a Edit 3: most of the metadata, including stuff that isn't actually shown to the user, can also be found in several |
Amazon, being Amazon and in pure Amazon fashon, didn't include basic info needed to determine the basics of movie/season, which means that on average we're looking at 15 calls to the server per page (at a minimum). Oh well, we can (probably) defer mostl parsing though, so it should still be ok? :\ |
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. |
I guess the watchlist isn't implemented yet, is it? |
It was working at some point, then it stopped working. I'm unsure of what I did (or didn't do), but it should eventually come back, this is super super early. |
I'm afraid this version is not working for me at all. The watchlist is still empty. When trying to browse the other sections I always get this error:
|
I didn't complete the watchlist. I don't have that error, but as I said previously I might have a working version. Really had no time to complete this, I'll get back to working when I can. |
Maybe I could help (although my knowledge about python is almost zero). I think I fixed that crash replacing the line
with
|
Thanks for the fix, I'll see if it applies to the current build when I can. |
Hi, With this patch i can view series, seasons and episodies and also i can play it. I hope that helps |
Thanks for the patch. I wanted to complete this new version a couple months ago, but I've been overwhelmed so far. I hope to check it asap. |
Don't worry, now I can play series and I can wait quietly for your new version. I have fork your repository to submit changes, it will surely be more comfortable. Varstahl/xbmc@add-pv-api...Goommer:goommer_mods Thanks a lot |
Ugh, seems that while I was gone for work like literally everything broke. Gotta get grok'in'. |
Hi again I release my last modifications. what's add:
Varstahl/xbmc@add-pv-api...Goommer:goommer_mods I look forward to your release to learn by comparing it with mine. Thanks a lot |
Nice, I'll take a look. At the moment I'm getting demolished by python3 compatibility, with the new release everything broke but I'll make sure to include the new features in. |
@Goommer I just got around to a workable state after the adaptation for the python 3 support, and I wanted to thank you for your effort. I didn't check and implement everything yet, and I don't know if I can merge everything as is, but the pagination fix is already in. It might take me a while to check everything, but I want to stress that your help is really appreciated. Edit: before I forget, the current code with the new endpoints is now here. |
Amazon introduced new api endpoints that could be used to scrape instead of the HTML counterparts. Some information are missing, so we need to evaluate whether moving the system to JSON makes sense or not. Note to self: absolutely avoid last time's bloodshed with the mix of Amazon-JSON-UI and HTML, should they decide to remove or block access to the API endpoints, again.
Watchlist, ignoring non-available content
Homepage
The text was updated successfully, but these errors were encountered: