XBMC Community Forum
[RELEASE] Hulu (Video) Plugin for XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Hulu (Video) Plugin for XBMC (/showthread.php?tid=42041)



- CrashX - 2009-01-11 05:33

rwparris2:

Here is the patch for version 2. It fixes the following issue:

1) Add more matching for 700K and 480K
2) Update to use Default Plugin quality setting ..

settings.xml :- http://ubuntu.pastebin.com/m5ee78526
stream_hulu.py :- http://ubuntu.pastebin.com/d6bf382ff


Error with plugin on Windows Server 2008 Enterprise - jsd115 - 2009-01-11 21:03

I'm having an issue running the plugin on Windows Server 2008 Enterprise. It's able to get a list of episodes and whatnot, but when I try to play an episode, it says "Opening stream" for an instant then nothing happens. I haven't made any modifications to the plugin script, just downloaded it and installed it. Part of my log file is below for debugging purposes. Thanks for any help!

Code:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> Xpath profile search : .//*[@profile='4x3 30fps High']
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> Video found : rtmp://cp39465.hulu.com/ondemand/?auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg<break>content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> RCode Milisecond : 1231700395244
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> RCode Random : 8920
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> RCode :89201231700395244
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> Proper Video url : rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:2064 M:4294967295 WARNING: DIRECTORY::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 0
13:59:56 T:2064 M:4294967295  NOTICE: DVDPlayer: Opening: rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg
13:59:56 T:2064 M:4294967295 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
13:59:56 T:4068 M:4294967295  NOTICE: Creating InputStream
13:59:56 T:4068 M:4294967295  NOTICE: Creating Demuxer
13:59:56 T:4068 M:4294967295   ERROR: rtmp server sent error
13:59:56 T:4068 M:4294967295   ERROR: rtmp server requested close
13:59:56 T:4068 M:4294967295   ERROR: CDVDDemuxFFmpeg::Open - error reading from input stream, rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg
13:59:56 T:4068 M:4294967295   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
13:59:56 T:4068 M:4294967295  NOTICE: CDVDPlayer::OnExit()
13:59:56 T:4068 M:4294967295  NOTICE: CDVDPlayer::OnExit() deleting input stream
13:59:56 T:2064 M:4294967295   ERROR: Playlist Player: skipping unplayable item: 0, path [rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg]
13:59:56 T:2064 M:4294967295  NOTICE: CDVDPlayer::CloseFile()
13:59:56 T:2064 M:4294967295 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
13:59:56 T:2064 M:4294967295  NOTICE: DVDPlayer: waiting for threads to exit
13:59:56 T:2064 M:4294967295  NOTICE: DVDPlayer: finished waiting
13:59:58 T:2064 M:4294967295  NOTICE: Storing total System Uptime
13:59:58 T:2064 M:4294967295  NOTICE: Saving settings
13:59:58 T:2064 M:4294967295  NOTICE: stop all
13:59:58 T:2064 M:4294967295  NOTICE: ES: Stopping event server
13:59:58 T:2064 M:4294967295  NOTICE: stop dvd detect media
13:59:58 T:2064 M:4294967295  NOTICE: stop sap announcement listener
13:59:58 T:2064 M:4294967295  NOTICE: clean cached files!
13:59:58 T:2064 M:4294967295  NOTICE: unload skin
13:59:58 T:2064 M:4294967295  NOTICE: stop python
13:59:58 T:2064 M:4294967295  NOTICE: stopped
13:59:58 T:2064 M:4294967295   ERROR: exception in CApplication::Process()
13:59:58 T:2064 M:4294967295  NOTICE: destroy
13:59:58 T:2064 M:4294967295   ERROR: Exception in CApplication::Cleanup()
13:59:58 T:2064 M:4294967295  NOTICE: application stopped...



alphabetical - hrcolb0 - 2009-01-12 05:26

the lists post alphabetical backwards. Is there a way to fix this? btw, great work. It is getting me to learn python.


- timdog82001 - 2009-01-12 05:46

hrcolb0 Wrote:the lists post alphabetical backwards. Is there a way to fix this? btw, great work. It is getting me to learn python.

I don't think its alphabetical, at least not for me. For me, it lists by air date/episode number, backwards. I think it has to do with how hulu lists things on their site. They always list the newest stuff first.


- JackieBrown - 2009-01-12 07:16

jsd115 Wrote:I'm having an issue running the plugin on Windows Server 2008 Enterprise. It's able to get a list of episodes and whatnot, but when I try to play an episode, it says "Opening stream" for an instant then nothing happens.

I have to click each episode twice on linux but it works.


- hrcolb0 - 2009-01-13 01:39

nope, its straight up backwards in the category listi-ngs and others, too.


- Voinage - 2009-01-13 01:56

Code:
a = [66.25, 333, 333, 1, 1234.5]###this would store eps
a.reverse()# reverse ep listing

for eps in a:

Just reverse the list before you add the links


- lonesouth - 2009-01-13 03:09

Great plugin!

Observations:

1. mine seems to time out when loading the list.
2. If I comment out the get show or episode list, it will time out quickly
3. resume from x:xx.xx doesn't work

Awesome work though!

01/09/09 release of the plugin
12/30/08 release of XBMC


- plankton88 - 2009-01-13 15:50

Is there an option to download the videos from Hulu? I tried to switch to filemode and copy, but is doesn't work.


- BlueCop - 2009-01-13 18:21

plankton88 Wrote:Is there an option to download the videos from Hulu? I tried to switch to filemode and copy, but is doesn't work.
I don't think this is possible with the current implementations of the rtmp client.
maybe we can get some devs to implement this.

take a look at rtmpdump post here

project url http://sourceforge.net/projects/rtmpdump

it includes scripts for hulu and iplayer to save videos.