[RELEASE] Hulu (Video) Plugin

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sion28 Offline
Senior Member
Posts: 247
Joined: Jul 2008
Reputation: 0
Location: Northern California, USA
Post: #31
Boxee is built on XBMC core code, so if it doesn't work on boxee it probably doesn't work on XBMC, and vice-versa, although not always.

PlayOn works for Hulu for now, but if the suits' twisted logic is to be applied to all applications, there's no reason why they should allow PlayOn to stream Hulu and not boxee, so don't expect it to last too long... although maybe due to the nature of how PlayOn works, it might be harder for Hulu to stop it from working.

You have to pay PlayOn $30 or $40 or so for the software. It runs on a separate PC on your network and transcodes the stream in real-time then re-streams it via UPnP to your local XBMC device. If you're okay with the fee and it works well on your computer (you can try it for free) then you can have Hulu on XBMC again right now. You need a decent PC to do the transcoding though... at least 2GB RAM, and probably something on the order of a P4 3GHZ or better/equivalent cpu. I had 1GB of RAM and it was hit/miss. Upgraded to 2GB and it worked much better. Then the Hulu plugin came out, and I dumped PlayOn. Might go back to it now though.... not sure.
find quote
Dick-Perry Offline
Junior Member
Posts: 19
Joined: Feb 2009
Reputation: 0
Post: #32
rwparris2 Wrote:There is no way that I know of to disable the IP Check, can you elaborate on what you mean by 'ip check disabled' ?


watch hulu outside of the usa
find quote
joebrady Offline
Team-Kodi Member
Posts: 1,647
Joined: Apr 2007
Reputation: 6
Location: Floyds Knobs, IN
Post: #33
sion28 Wrote:Very high and mighty of you. I really hate it when the "experts" refuse to answer a question from a noob just because it SEEMS like common sense to them.

How about this as a strategy: call the noob out for being a clueless lazy noob, then rise above and answer the question anyway. Then suggest that next time he could probably answer the question for himself with a little effort.

That way the forum doesn't appear to be populated with pompus jerks. Rolleyes

To aacore: Hulu stopped access to their streams by programs like xbmc and it's younger sibling boxee, due to pressure from "content providers". Nobody can watch anything from hulu right now (well, some can, but it's not as easy as it was, and if you have xbmc running on an xbox it's pretty much impossible.)

The fancast plugin is a decent second choice for now.

I do not consider myself an "expert" by any means. I am on this site quite often through out the week and answer what I can, when I can. But if I see a question where I think the person hasn't taken any time to try to answer it for themself first, I'll call them out on it and tell them how to find it.

From the front page of the forums:
Support and Help Corner for XBMC end-users
Need help with XBMC? Please post a separate thread for each unique question that you have.
Make sure that you always search the XBMC Online Manual and the FAQ before posting here.

(maybe this should say search the forum also)

A simpe search of the forum for "Hulu" pulled up this thread:
http://forum.xbmc.org/showthread.php?tid...light=Hulu
(which is now the number two result, which is why they don't want a bunch of multiple thread about the same things, so it's easier to find the info you need)
Only three pages. The first post clears it all up.


Give a man a fish, and he'll eat for a day. Teach a man to fish and he will eat for a lifetime.
find quote
Voinage Offline
Banned
Posts: 846
Joined: Mar 2008
Location: England
Post: #34
Gentlemen, decorum.

How about : Finding the threads, posting them for the new member, then asking them to search if they get stuck again...?

Beati quorum via.

Cheers
find quote
TraffikD Offline
Junior Member
Posts: 2
Joined: Feb 2009
Reputation: 0
Post: #35
pushparvind Wrote:Here is what I did to try to get Hulu to work on windows:
I downloaded gnash from:
http://webscripts.softpedia.com/script/D...21619.html

Extracted the gnash files to c:\gnash.
modified:
C:\Users\admin\AppData\Roaming\XBMC\plugins\video\Hulu\resources\settings.xml
to point the gnash_path setting to c:\gnash\gnash.exe
as below:

<setting id='gnash_path' type ="text" label="30020" default="c:\gnash\gnash.exe"/>

After that I was able to go to Hulu and browse various folders for all the videos available there. However whenever I click on any video to view it, I get the following error:

Error
Python script failed:
special://home/plugins/video/Hulu/default.py

Any ideas what I need to do? Where can I find more information about this?

It's funny, I did the exact same thing as you except I got gnash from a different source. Same problems with python failing. I think there's a compatibility problem with boxee/xbmc, python, and this script if you're a Windows user. So it's looking like Windows users are screwed for the time being.
find quote
jonm42 Offline
Senior Member
Posts: 177
Joined: Feb 2009
Reputation: 0
Location: Portland, OR
Post: #36
There was small glitch regarding checking for isdir vs. isfile or exists; get the latest from SVN and you'll get past the can't find gnash error.
find quote
hrcolb0 Offline
Member
Posts: 61
Joined: Jan 2009
Reputation: 0
Post: #37
Got the new svn. Now I get a syntax error:

Code:
Traceback (most recent call last):
11:39:33 T:2120 M:510119936  NOTICE:   File "C:\Program Files\XBMC\plugins\video\hulu\default.py", line 12, in ?
11:39:33 T:2120 M:510119936  NOTICE:
11:39:33 T:2120 M:510119936  NOTICE: import resources.lib.common as common
11:39:33 T:2120 M:510119936  NOTICE:   File "C:\Program Files\XBMC\plugins\video\hulu\resources\lib\common.py", line 21, in ?
11:39:33 T:2120 M:510115840  NOTICE:
11:39:33 T:2120 M:510115840  NOTICE: exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", ").replace('"','\'')), )
11:39:33 T:2120 M:510115840  NOTICE:   File "
11:39:33 T:2120 M:510115840  NOTICE: <string>
11:39:33 T:2120 M:510115840  NOTICE: ", line
11:39:33 T:2120 M:510115840  NOTICE: 1
11:39:33 T:2120 M:510115840  NOTICE:
11:39:33 T:2120 M:510115840  NOTICE:
11:39:33 T:2120 M:510115840  NOTICE: args = _Info(url='http://www.hulu.com/watch/59165/24-500-pm---600-pm#http%3A%2F%2Fwww.hulu.com%2Ffeed%2Fpopular%2Fvideos%2Ftoday%3Frd%3D0', mode='RSS_play', name='24: 5:00 PM - 6:00 PM (s7 | e10)', fanart='http://assets.hulu.com/shows/key_art_24.jpg', plot='Chloe O'Brian hacks away to assist Jack Bauer and Agent Renee Walker as they twist and turn through metro Washington, DC.', genre='Most Popular Videos Today')
11:39:33 T:2120 M:510115840  NOTICE:

It's the same syntax as the previous version so I don't know what it is messing up now.
find quote
thejipster Offline
Junior Member
Posts: 2
Joined: Jan 2009
Reputation: 0
Post: #38
I followed the gnash install/link from OP above and got the listing now.
But when playing, I errors out.
xbmc.log shows . The URL looks weird, not sure what type of URL encoding is used within python script.

9:53:21 T:1352 M:234811392 ERROR: Scriptresult: Error
09:53:21 T:4044 M:236904448 ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting plugin://video/Hulu/?url="http%3A%2F%2Fwww.hulu.com%2Fwatch%2F44998%2Ffringe-the-equation"&mode="TV_play"&name="s01e08+Fringe%3A+The+Equation+"&fanart="http%3A%2F%2Fassets.hulu.com%2Fshows%2Fkey_art_fringe.jpg"&plot="A+child+music+prodigy+is+abducted+by+a+serial+kidnapper."&genre="genre"
09:53:21 T:4044 M:236904448 ERROR: CGUIMediaWindow::GetDirectory(plugin://video/Hulu/?url="http%3A%2F%2Fwww.hulu.com%2Fwatch%2F44998%2Ffringe-the-equation"&mode="TV_play"&name="s01e08+Fringe%3A+The+Equation+"&fanart="http%3A%2F%2Fassets.hulu.com%2Fshows%2Fkey_art_fringe.jpg"&plot="A+child+music+prodigy+is+abducted+by+a+serial+kidnapper."&genre="genre") failed
find quote
sion28 Offline
Senior Member
Posts: 247
Joined: Jul 2008
Reputation: 0
Location: Northern California, USA
Post: #39
Voinage Wrote:Gentlemen, decorum.

How about : Finding the threads, posting them for the new member, then asking them to search if they get stuck again...?
Well, that's pretty much what I did/suggested, except I didn't post the thread link... just summarized.
Voinage Wrote:Beati quorum via.
I'm no latin expert, but does that make sense w/o the "... integra est" ending? "Blessed whose way...?"
(This post was last modified: 2009-02-24 20:30 by sion28.)
find quote
timdog82001 Offline
Posting Freak
Posts: 1,142
Joined: Mar 2006
Reputation: 0
Post: #40
jonm42 Wrote:There was small glitch regarding checking for isdir vs. isfile or exists; get the latest from SVN and you'll get past the can't find gnash error.

thank you for that. I'm sure I would have figured it out before long anyway, but it at least loads now.

However, I seem to be getting the script failing message like everyone else when i try to play a video and also near the end of trying to load the "all shows" directory of tv shows
find quote
Avoni Offline
Junior Member
Posts: 8
Joined: Feb 2009
Reputation: 0
Post: #41
Going from svn as of this morning I'm still seeing some errors and videos are still failing to load.
This one was easy enough to solve, just separate the lines from the error

Code:
NOTICE: smilURL = "http://releasegeo.hulu.com/content.select?pid=" + hulu_decrypt(pid) + "&mbr=true&format=smil"
NOTICE: TypeError
NOTICE: :
NOTICE: cannot concatenate 'str' and 'NoneType' objects

So they look like this

Code:
smilURL = "http://releasegeo.hulu.com/content.select?pid="
    hulu_decrypt(pid)
    "&mbr=true&format=smil"

Now the error is

Code:
NOTICE:   File "/usr/share/xbmc/system/python/python24.zip/urllib2.py", line 480, in http_error_default
NOTICE:
NOTICE: raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
NOTICE: urllib2
NOTICE: .
NOTICE: HTTPError
NOTICE: :
NOTICE: HTTP Error 404: Not Found
NOTICE:
ERROR: Scriptresult: Error
INFO: Python script stopped

A 404 error, that's just irking. I'm getting closer.
(This post was last modified: 2009-02-24 21:41 by Avoni.)
find quote
jonm42 Offline
Senior Member
Posts: 177
Joined: Feb 2009
Reputation: 0
Location: Portland, OR
Post: #42
Whats odd is that I have all this working with a build pulled yesterday (on Mac OS) sometime (at work/lunch so no idea as to the actual r####). Quite odd.
find quote
rectalogic Offline
Junior Member
Posts: 30
Joined: Feb 2009
Reputation: 0
Post: #43
Avoni Wrote:Going from svn as of this morning I'm still seeing some errors and videos are still failing to load.
This one was easy enough to solve, just separate the lines from the error

Code:
NOTICE: smilURL = "http://releasegeo.hulu.com/content.select?pid=" + hulu_decrypt(pid) + "&mbr=true&format=smil"
NOTICE: TypeError
NOTICE: :
NOTICE: cannot concatenate 'str' and 'NoneType' objects

That error means hulu_decrypt() failed and returned None.

Your fix is just preventing the concatenation, so you end up with an invalid URL and 404 return.
find quote
oncomouse Offline
Junior Member
Posts: 3
Joined: Aug 2008
Reputation: 0
Post: #44
rectalogic Wrote:That error means hulu_decrypt() failed and returned None.

Your fix is just preventing the concatenation, so you end up with an invalid URL and 404 return.

These errors with things failing seem to be happening because of something with gnash. I've compiled it on OSX and when I run:

Code:
dump-gnash --render-mode 0 --verbose --param FlashVars=pid=f59f3f3cea444f31822baa4430fa4b298c7eddd65d204312649f42cccd2c6f46~5​e7f306abe00bb2ee692cb1bb8521bbd119c244eea968997ab8f06cdbe3308f9 DecryptPid.swf

I get the following output:

Code:
RcInitFile: parsing /usr/local/etc/gnashrc
RcInitFile: couldn't open file: /Users/test/.gnashrc
4988:2691733280] 16:26:17 SECURITY: Checking security of URL 'file:///Users/test/Desktop/DecryptPid.swf'
4988:2691733280] 16:26:17 SECURITY: Load of file /Users/test/Desktop/DecryptPid.swf granted (under local sandbox /Users/test/Desktop/)
4988:2691733280] 16:26:17 UNIMPLEMENTED: SWF9 is not fully supported, trying anyway but don't expect it to work
4988:2691733280] 16:26:17 SECURITY: Checking security of URL 'http://www.hulu.com/sec.swf'
4988:2691733280] 16:26:17 SECURITY: Load from host www.hulu.com granted (default)
4988:2691733280] 16:26:17 ERROR: HTTP response 404 from url http://www.hulu.com/sec.swf
4988:2691733280] 16:26:17 ERROR: unknown file type, buf is #W?
4988:2691733280] 16:26:17 ERROR: unknown file type (5)
4988:2691733280] 16:26:17 ERROR: Couldn't load library movie 'http://www.hulu.com/sec.swf'
4988:2691733280] 16:26:17 ERROR: can't create movie_definition for http://www.hulu.com/sec.swf

Running "wget http://www.hulu.com/sec.swf" gets the file just fine, as does browsing there in Firefox. Could it be possible for the Hulu people to be blocking gnash somehow?
find quote
d4rk Offline
Team-XBMC Developer
Posts: 499
Joined: May 2007
Reputation: 1
Location: Albuquerque
Post: #45
They're doing a simple user agent check, it's defined in libbase/curl_adaptor.cpp.

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]
find quote
Post Reply