Hulu Plugin Development Thread - Developers only!

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jonm42 Offline
Senior Member
Posts: 177
Joined: Feb 2009
Reputation: 0
Location: Portland, OR
Post: #21
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/iss...tail?id=11; this includes a diff from r656 and a zip with the whole thing.
find quote
hrcolb0 Offline
Member
Posts: 61
Joined: Jan 2009
Reputation: 0
Post: #22
*edited out* I made a boner mistake
(This post was last modified: 2009-02-25 04:03 by hrcolb0.)
find quote
jonm42 Offline
Senior Member
Posts: 177
Joined: Feb 2009
Reputation: 0
Location: Portland, OR
Post: #23
Grumble. See issues # 14: http://code.google.com/p/xbmc-addons/iss...tail?id=14
find quote
jonm42 Offline
Senior Member
Posts: 177
Joined: Feb 2009
Reputation: 0
Location: Portland, OR
Post: #24
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):

Code:
<script type="text/javascript">
//<![CDATA[
var s14qdsk1 = new VideoSlider("s14qdsk1", {url: "http://www.hulu.com/videos/slider", maxCount: 45, urlOptions: {type: "episode", show_id: 806, sort: "original_premiere_date", items_per_page: 5, season: "", page: 1}, seasonCounts: {all: {all: 45, s1: 23, s2: 22}, episode: {all: 45, s1: 23, s2: 22}, clip: {all: 0, s1: 0, s2: 0}}})
//]]>
</script>

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.

Thanks.
find quote
jonm42 Offline
Senior Member
Posts: 177
Joined: Feb 2009
Reputation: 0
Location: Portland, OR
Post: #25
YeeHaw! Try the following in your browser of choice:

http://www.hulu.com/videos/slider?type=e...er_page=45

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!)
(This post was last modified: 2009-02-27 22:30 by jonm42.)
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,341
Joined: Jan 2008
Reputation: 2
Location: US
Post: #26
jonm42 Wrote:YeeHaw! Try the following in your browser of choice:

http://www.hulu.com/videos/slider?type=e...er_page=45

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!)

which is exactly how it used to work Wink (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?orde...pe=episode

I believe this messy pile of crap does it: http://code.google.com/p/rwparris2-xbmc-...lu.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...how_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=e...t&season=1

for clips just change type=clip (but only if the show actually has clips)

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
(This post was last modified: 2009-02-28 00:35 by rwparris2.)
find quote
jonm42 Offline
Senior Member
Posts: 177
Joined: Feb 2009
Reputation: 0
Location: Portland, OR
Post: #27
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.
(This post was last modified: 2009-02-28 00:29 by jonm42.)
find quote
mileszim Offline
Junior Member
Posts: 2
Joined: Feb 2009
Reputation: 0
Post: #28
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.
find quote
angrycamel Offline
Senior Member
Posts: 226
Joined: Dec 2008
Reputation: 7
Post: #29
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:

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.

I posted that very solution a while back. It's still sitting out on my site if you want o play with it.

http://forum.xbmc.org/showpost.php?p=286...tcount=576
find quote
mileszim Offline
Junior Member
Posts: 2
Joined: Feb 2009
Reputation: 0
Post: #30
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.

http://forum.xbmc.org/showpost.php?p=286...tcount=576

brilliant! i'll try to see if i can implement this. great work as usual angrycamel!
find quote
Post Reply