-
Notifications
You must be signed in to change notification settings - Fork 29
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
TV Shows seasons and episodes #64
Comments
Yeah thanks, I know the whole thing is quite broken now. |
I figured out some of the calls so far. I am able to get a list of episodes in json so no need to hack through the actual HTML. Right now i am working on tracking down the images, descriptions for episodes, ratings and the watched flag. Do you have a place you would want it posted? So far the best way to use the calls is the following: Get Show ID->Get Show Description (Season list, Title, Number of Seasons) ->request season list (Season Name, Episode List)->get Episode Info. trying to get this into one call though at the moment to cut down the round trip. |
Take a look at the below I can likely track down the rest of the pieces for you if it will help. I checked the current code, so far looks like you have the rest of the information. Also, IMDB might be a better source for episode descriptions and season info as well as easier to obtain. Call to retrieve Show Information. post method to the following URI: http://www.netflix.com/api/shakti/ebd809fd/pathEvaluator?withSize=true&materialize=true&model=harris&fallbackEsn=WWW Note: the ebd809fd part changes depending on who you are. it can be parsed off the main page however. Call:
Return:
This gives you the most info to get episodes. Next call should be the following (since we now have the episode count) which will return a json object with all of the seasons and their ID's. Still trying to figure out how to add episode count to this.
Then we can just request the following for each season and get picture/description/etc for each episode
this is way easier to parse as you get json and links to images as well at the same time which we can cache. |
That looks good! On a related note, a google search of "netflix api shakti" does bring up some other useful looking links, like: https://gist.github.com/hubgit/2019f4a3eaaa25bcbe12 |
I've been playing around with Python trying to get a standalone class to manage retrieving information. That way we could keep it separate from the actual cashing and display logic. Might be easier to use it that way and possibly connect other sites like Hulu into the same plugin at some point |
Absolutely, I'm restructuring the code to work that way already. My sbs addon is set up that way and it makes the code far easier to test and maintain. |
Is it in your testing repo? I'd love to get a pull of it |
No not yet, it's too early days to have anything to test. I was already working on changing the chrome/browser interactions before the netflix api stuff broke so I want to finish cleaning that up before I can really get onto the netflix comms. Once the new structure is done I'll certainly get it online and shared, such that anyone else trying to help like you can work in the new layout to make merges easy. |
I'll try to track down anything else of use for the time being then like getting lists and stuff. |
If you look back a good few pages on the forum (around page 71 I think) a
|
That's the thing though, Netflix already provides about 90% of the data. images,icons,actors,directors,descriptions,ratings,watched/not watched. just need the correct API call and it's extremely small size wise and fast. |
Oh absolutely, anything that can come from Netflix is best, last I looked
*IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this e-mail, |
So far I really haven't ran into any JS being required. Does require some parsing of the page when it initially loads to get the server hex, and Shakti API reference. Do you have a rough list of what information and actions you need? I could see which ones I can track down. Also, there is a way to control the player through JavaScript but that one would definitely require JS I think. That could be separated into an actual chrome plugin though to interact with the player through the OS layer directly. |
No I'm not really sure yet. JS player interactions are already being done, that's how I handle On 12/11/2015 3:14 PM, krutoileshii wrote:
|
I am working on getting the following calls nailed down:
Currently just compiling a giant file with calls/replies and what's required. I will share it once it gets closer. |
Seems that calls to api-global.netflix.com/desktop/odp/episodes... stoped working.
I made it work again parsing html from http://www.netflix.com/title/"+seriesID, not pretty but it works.
My changes are here: https://github.com/badcrc/plugin.video.netflixbmc
I don't dare making a PR because the code isn't pretty and i'm sure there are lots of debugs still printed, etc... anyway I hope it helps!
The text was updated successfully, but these errors were encountered: