[RELEASE] Hulu (Video) Plugin for XBMC

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
Hotkey Offline
Senior Member
Posts: 219
Joined: Sep 2007
Reputation: -30
Post: #586
I'm far from knowing how to code but just wanted to ask if the "remedies" described above are OK for the lay man (if so I need a lot of help!) or do I need to wait for changes to be released in revised script? Thanks - I really appreciate all the XBMC folks do - its truly a great ap!
find
ptaylor Offline
Junior Member
Posts: 18
Joined: Feb 2009
Reputation: 0
Post: #587
Oh - definitely wait!

I imagine a good solution will be implemented in the main script at some point. For maximum compatibility with all platforms and the X-box, we might need to host the wrapper swf file somewhere and just let the XBMC Hulu script perform one more call to that wrapper, the hosted wrapper can access it's own local copy of the sec.swf file to actually perform the decryption. That might be a fair amount of processing though, depending on how popular it is. Plus, I don't know about the legality of hosting that.

The best solution would be if some actionscript wizard could figure out the real encryption method, then just implement that in python.
(This post was last modified: 2009-02-20 07:49 by ptaylor.)
find
oneeyedelf1 Offline
Junior Member
Posts: 3
Joined: Feb 2009
Reputation: 0
Post: #588
It isn't working for me. I am sure I am passing the decrypted pid. I am not sure if I have a good enough version of xbmc to run the hulu plugin. The version that I am using is the one in the ubuntu PPA. Can someone tell me how to easily determine if I have RTMP support or install a version on ubuntu rather easily that has RTMP support?
Maybe people can tell me if I am on the right path, I am getting this as my url for Heroes
<code>
rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEapdebWcrc2c9bWdnc6dZbbaNducBbhb1-bjNLFX-8-1qJCzEu0Ezn&aifp=NS20070910&slist=content/39478/14/37/HuluTranscode_62967_67850_FLASH_480K_16x9_23_976__4QUNdySS10G5XSLx+f6Ahw</code>
(This post was last modified: 2009-02-20 09:30 by oneeyedelf1.)
find
d4rk Offline
Team-XBMC Developer
Posts: 499
Joined: May 2007
Reputation: 1
Location: Albuquerque
Post: #589
I've uploaded a "dirty" patch to rwparris2's Hulu plugin, which decrypts the PID and restores functionality for the time being. You can grab it from here if you're interested.

EDIT: You can download the patched plugin from here.

EDIT2: rwparris2 is the author of the Hulu plugin (and many other awesome plugins), not me, so please direct all praise his way.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


[Image: badge.gif]
(This post was last modified: 2009-02-21 04:50 by d4rk.)
find
vash3k Offline
Junior Member
Posts: 5
Joined: Feb 2009
Reputation: 0
Post: #590
Hey, I've got it running right now on the Xbox. Awesome job so far guys! I had some errors when ftping it so I used the file manager in XBMC to bring it over. Otherwise, not bad. Laugh
find
lewis.donofrio Offline
Senior Member
Posts: 136
Joined: Feb 2009
Reputation: -10
Rainbow  Uh patch....
Post: #591
how do we keep this "just for xbmc and not boxee jerks" Cool
find
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #592
we dont
find
ptaylor Offline
Junior Member
Posts: 18
Joined: Feb 2009
Reputation: 0
Post: #593
d4rk Wrote:I've uploaded a "dirty" patch to the Hulu plugin, which decrypts the PID and restores functionality for the time being. You can grab it from here if you're interested.

EDIT: You can download the patched plugin from here.

Awesome work! Re-implementing the decryption in Python is about the best fix we could hope for!
find
angrycamel Offline
Senior Member
Posts: 234
Joined: Dec 2008
Reputation: 8
Post: #594
ptaylor Wrote:Awesome work! Re-implementing the decryption in Python is about the best fix we could hope for!

For now, yes. However every time Hulu puts out a newer version of sec.swf we will have to race to get it ported and distributed. It would be much better to actually just run the sec.swf (in a wrapper) by downloading it directly from the Hulu site in XBMC. This is what rectalogic is working on testing out with gnash.

Any progress on that rectalogic?

Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

[Image: hUryuD3.png]
find
WhySoSerious70 Offline
Junior Member
Posts: 1
Joined: Feb 2009
Reputation: 0
Post: #595
d4rk's fix works for me. I guess by 'dirty' he is refering to the errors I seem to get when running the plugin. When initially starting the plugin and subsequently every link you click after you get the error: "Python script failed: special://home/plugins/video/Hulu/default.py" but the end result is still a playable show or movie. Thanks d4rk! Big Grin
find
jonm42 Offline
Senior Member
Posts: 177
Joined: Feb 2009
Reputation: 0
Location: Portland, OR
Post: #596
On Mac OS 10.5.6, I get a hang and require a force quit -- nothing in the log.
find
rectalogic Offline
Junior Member
Posts: 30
Joined: Feb 2009
Reputation: 0
Post: #597
angrycamel Wrote:It would be much better to actually just run the sec.swf (in a wrapper) by downloading it directly from the Hulu site in XBMC. This is what rectalogic is working on testing out with gnash.

Any progress on that rectalogic?

Yes, have it working with gnash.

Now I'm looking at using the swfdec library. I think I can write a small C app that will directly load sec.swf and invoke the dec() function - so we won't even need any intermediary actionscript - just invoke dec() inside sec.swf from C code.
find
CrashX Offline
Posting Freak
Posts: 1,164
Joined: Jan 2009
Reputation: 2
Post: #598
Python wrapper for swfdec:-

https://launchpad.net/pyswfdec/

Now we should be able to call the swf directly within hulu ..
find
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,333
Joined: Jan 2008
Reputation: 2
Location: US
Post: #599
Thanks to d4rk's hard work we now have a working version in SVN. Good job man!

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/
find
cptlare Offline
Junior Member
Posts: 1
Joined: Feb 2009
Reputation: 0
Post: #600
Great job guys, I've been waiting for a script that works on my xbox. One question however, is there any way to get subtitle/captioning streams for us deaf/hard-of-hearing people? Some shows on the site display subtitles when turned on, so I was wondering if it was possible for this plugin to display the subtitle streams. Smile
find
Thread Closed