Hulu Plugin Development Thread - Developers only! - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: Hulu Plugin Development Thread - Developers only! (/showthread.php?tid=45888)
- jonm42 - 2009-02-24 18:36
Added an issue re: fixing some stuff in subscriptions (will see all of them now), some general cleanup in various spots, and adding clip support within subscriptions.
See http://code.google.com/p/xbmc-addons/issues/detail?id=11; this includes a diff from r656 and a zip with the whole thing.
- hrcolb0 - 2009-02-25 04:00
*edited out* I made a boner mistake
- jonm42 - 2009-02-25 06:33
Grumble. See issues # 14: http://code.google.com/p/xbmc-addons/issues/detail?id=14
- jonm42 - 2009-02-26 23:58
I was digging through the page source for the Babylon-5 top level page, and found the following snippet that builds the thumbnail set at the top (the 5 thumbs you see):
which appears to be how they build the set; I also noticed that it had an episode count by season, and a clip count by season. I also noticed that it appears to be a URL call to go get things. Does anyone have an idea as to how to pass in the seasonCounts parameter via a URL? The rest seems pretty straightforward.
- jonm42 - 2009-02-27 22:24
YeeHaw! Try the following in your browser of choice:
I'm going to integrate this into a variant of the Hulu plugin and see how far I can get, but I think we have seasons, episodes, names, links, and thumbs.
(Note that adding &season=# gives you season specifics -- Yay!)
- rwparris2 - 2009-02-27 23:16
jonm42 Wrote:YeeHaw! Try the following in your browser of choice:
which is exactly how it used to work (EDIT: er, not really)
I went back to look and I was wrong, it uses the 'expander' url for seasons & episodes instead of the slider one you posted above:: http://www.hulu.com/videos/expander?order=asc&show_id=20&sort=season&video_type=episode
I believe this messy pile of crap does it: http://code.google.com/p/rwparris2-xbmc-plugins/source/browse/trunk/plugins/video/Lets%20Watch%20Hulu/resources/lib/stream_hulu.py?r=64
Using the slider will be better, for this though.
But I was using a similar 'slider' url for grabbing the HD streams (which as it turns out xbmc can't play anyways) http://www.hulu.com/videos/slider?season=&category=Full%20Episodes&sort=original_premiere_date&hd_allowed=1&items_per_page=1000&show_id=164
Anyways, to answer your question from the PM, I moved away from this because the RSS feed has the icon, plot & other info all in one spot in a single easily parsable page. I just didn't test with anything that had more than 20 episodes, so I never noticed that little bug. The fact that you have to make a seperate json request for EVERY episode to get it's plot is really a time killer... and that is why that option exists in the plugin settings, even though it currently does nothing.
You may have figured all this out already, but just a few friendly FYIs:
to get the show info you'll need to grab this number [html]http://www.hulu.com/watch/21074/babylon-5-the-fall-of-night[/html]and then stick it in here:
[html]http://www.hulu.com/videos/info/21074[/html]which will return all kinds of nifty metadata
for shows with categories you'll need to add category= in your url as well, ex. http://www.hulu.com/videos/slider?type=episode&show_id=1708&items_per_page=45&category=Alt+Text&season=1
for clips just change type=clip (but only if the show actually has clips)
- jonm42 - 2009-02-28 00:28
With the above I can get something together over the weekend; I'll skip plot for now and just structure it so I (or some other lucky person) can fold it in based on the existing option. Thanks! This is a hoot.
- mileszim - 2009-02-28 23:43
And idea for the decryption, what if we had a site that took the PID, and returned the decrypted PID. It could look something like this:
1. hulu plugin retrieves the PID
2. PID -> external site API, so like http://somesite.com/pid=PID
3. Site returns decrypted PID
4. hulu plugin then uses that
It would avoid gnash on XBMC itself, re-enabling the plugin for use with the Xbox, and correct me if I'm wrong but it would most likely use very little resources on the site itself. If that is the case, I could help develop the web-backend part and host it on my site.
- angrycamel - 2009-03-01 06:15
mileszim Wrote:And idea for the decryption, what if we had a site that took the PID, and returned the decrypted PID. It could look something like this:
I posted that very solution a while back. It's still sitting out on my site if you want o play with it.
- mileszim - 2009-03-01 23:52
angrycamel Wrote:I posted that very solution a while back. It's still sitting out on my site if you want o play with it.
brilliant! i'll try to see if i can implement this. great work as usual angrycamel!