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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Hulu (Video) Plugin for XBMC (/showthread.php?tid=42041)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47


- rwparris2 - 2008-12-28

I made my own Hulu Plugin

It doesn't work any better than BlueCop's (in fact I just used his same code), but it does have more options & settings which makes things nicer IMO.

Download from my sig.


- timdog82001 - 2008-12-28

rwparris2 Wrote:I made my own Hulu Plugin

It doesn't work any better than BlueCop's (in fact I just used his same code), but it does have more options & settings which makes things nicer IMO.

Download from my sig.

Not sure if you designed it to be cross-platform compatible, but it doesn't work for me on the xbox. The settings open and save fine, but trying to open the plugin just brings up a dialog, which soon closes and you're back at the plugin screen.


- whufclee - 2008-12-28

timdog82001 Wrote:Not sure if you designed it to be cross-platform compatible, but it doesn't work for me on the xbox. The settings open and save fine, but trying to open the plugin just brings up a dialog, which soon closes and you're back at the plugin screen.

I was just in the middle of writing the same comment! Plugin settings look good though but unfortunately it doesn't seem to work on xbox.


- mpskeeter - 2008-12-28

whufclee Wrote:I was just in the middle of writing the same comment! Plugin settings look good though but unfortunately it doesn't seem to work on xbox.

I had to edit the settings.xml file and uncomment the quality setting for it to work.

Other than that, had one buffer problem when loading a TV category.

Works pretty good. Noticed it doesn't support login via cookie to support loading of mature movies.

Code:
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\default.py", line 18, in ?
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: plugin.Main()
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 25, in __init__
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: self.__modes__()
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 97, in __modes__
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: self._add_listings(self.args.url)
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 129, in _add_listings
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: ok = self._add_items(url)
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 186, in _add_items
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: text=self.get_HTML("http://www.hulu.com/shows/info/"+tmp)
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 114, in get_HTML
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: response = urllib2.urlopen(req)
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 130, in urlopen
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 358, in open
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 376, in _open
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 337, in _call_chain
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 1021, in http_open
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 996, in do_open
08:30:10 M: 14233600  NOTICE: urllib2
08:30:10 M: 14233600  NOTICE: .
08:30:10 M: 14233600  NOTICE: URLError
08:30:10 M: 14233600  NOTICE: :
08:30:10 M: 14233600  NOTICE: <urlopen error (10055, 'No buffer space available')>



- rwparris2 - 2008-12-28

mpskeeter Wrote:I had to edit the settings.xml file and uncomment the quality setting for it to work.

Other than that, had one buffer problem when loading a TV category.

Works pretty good. Noticed it doesn't support login via cookie to support loading of mature movies.

Code:
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\default.py", line 18, in ?
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: plugin.Main()
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 25, in __init__
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: self.__modes__()
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 97, in __modes__
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: self._add_listings(self.args.url)
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 129, in _add_listings
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: ok = self._add_items(url)
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 186, in _add_items
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: text=self.get_HTML("http://www.hulu.com/shows/info/"+tmp)
08:30:10 M: 14233600  NOTICE:   File "Q:\plugins\video\Lets Watch Hulu\resources\lib\stream_hulu.py", line 114, in get_HTML
08:30:10 M: 14233600  NOTICE:
08:30:10 M: 14233600  NOTICE: response = urllib2.urlopen(req)
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 130, in urlopen
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 358, in open
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 376, in _open
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 337, in _call_chain
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 1021, in http_open
08:30:10 M: 14233600  NOTICE:   File "Q:\system\python\python24.zlib\urllib2.py", line 996, in do_open
08:30:10 M: 14233600  NOTICE: urllib2
08:30:10 M: 14233600  NOTICE: .
08:30:10 M: 14233600  NOTICE: URLError
08:30:10 M: 14233600  NOTICE: :
08:30:10 M: 14233600  NOTICE: <urlopen error (10055, 'No buffer space available')>

Uncommenting the quality setting in settings xml will make it work on xbox. It setting doesn't affect anything, but the plugin will run. Sorry guys.

That error looks like maybe it is a memory problem? I'm not sure. I did not test it on xbox but it should be cross platform. I'll look into it. What show was it?

I'll clean up the code and add logging in & downloading shortly.


- BlueCop - 2008-12-28

rwparris2 Wrote:That error looks like maybe it is a memory problem? I'm not sure. I did not test it on xbox but it should be cross platform. I'll look into it. What show was it?

I'll clean up the code and add logging in & downloading shortly.

I have had my debug on level 3 to monitor the memory usage and it has plenty of memory free.

If i disable "Get Show Description" and "Get Episode Plot" it works on xbox.
if i have these settings on i would get "No buffer space available" and alot of timeouts.
I also flattened the tv and movies but i don't think that effected it.

I like the interface. great work on the plugin. could you perhaps have the shows episode number in the episode list under seasons? i could do it myself but it would probably take you much less time.

I am still really new to this but i have started writing some code to convert smi to srt if you want it. Its really easy to do and you could probably write better code then me.


Feature Idea - BlueCop - 2008-12-28

In addition to being able to save episodes it would be nice to have a subscribed show list.

If you add support for logging in to the site then supporting your Queue feature from the website would be really easy they have a custom RSS feed for you already. I think you can access it already at "http://www.hulu.com/feed/queue/" + your username
that way you could have your favorite shows and see when they will expire ect.

Now my dream would be a background script that would periodically check your rss feed and automatically save all the episodes for your subscribed shows on hulu. It could have settings similar to a PVR like the number of episodes to keep or delete. get only new episodes or new old episodes that they add back. It could have many customizable features.

I just see alot of great possibilities with this if we start saving the streams because we then have the ability to skip around the episodes and resume the episodes at our chosen time and i could watch the h264 streams without crashing my xbox.

I am not new to xbmc but i am not sure if you could run background scripts at certain intervals? is that possible?

If it is possible to accomplish this it would be better then tivo or any pvr imho

rwparris2: have you tried playing any of the 720p HD streams? I only run it on my xbox so i know it won't work with me but if you are running on another platform with enough power then HD would be awesome.


- rwparris2 - 2008-12-28

I'm looking at your other requests, but as far as downloading stuff from your Hulu automatically, why not just us tvrss.net?

all the h264 stuff acts the same on windows & linux as it does on xbox, plays too fast. It may be a property that needs to be defined I'm not sure.


- BlueCop - 2008-12-28

rwparris2 Wrote:I'm looking at your other requests, but as far as downloading stuff from your Hulu automatically, why not just us tvrss.net?
I can think of lots of reasons

1. The quality of the video and audio is the main reason for me. Scene releases conform to certain standards but they are lower res then the 720x400 16x9 material and 640x480 4x3 material h264 streams with the exception of the 720p HD rips.

2. speed is a big factor when saving episodes on my computer i can save an entire 22minute episode in around 3 minutes.

3. Also alot of the Videos don't have the network bug on them so it is like watching a DVDrip.

4. Bandwidth is another factor because my cable service has a GB cap so torrents can suck alot of that up. This way it would be a connection to a single service and a set bitrate on the video lets me know exactly how much bandwidth i would be using.

5. I haven't seen many tv scene releases come with subtitles.


- BlueCop - 2008-12-28

well i am just anxious so i have started to work on some modifications to your script.

Mainly just better integration with the website features specifically their queue, subscriptions, history and recommendation feeds.

each of which is at these urls + your username
http://www.hulu.com/feed/history/
http://www.hulu.com/feed/queue/
http://www.hulu.com/feed/recommendations/
http://www.hulu.com/feed/show_recommendations/
http://www.hulu.com/feed/subscriptions/

This way you could run the script on many boxes and be able to share the history and show settings amongst them all.


- rwparris2 - 2008-12-28

BlueCop if you have a gmail account I can just add you to my svn so we can work on it together? No need to separately do the same thing.
Send me a PM if you're interested.


- killyourscene - 2008-12-28

Just wondering, has anyone gotten these Hulu plugins to work outside of the US at all?


- timdog82001 - 2008-12-29

As an idea, it might be cool if the plugin had an option to scrape the imdb or any of the alternates like movieposterdb and so on, just like xbmc does with local files to get cover art. The current hulu icons are pretty blurry and not that stylish. Not sure how long that might take, hopefully it would be a bit quicker than regular if the only thing you're grabbing is the cover.


- JeffElkins - 2008-12-29

killyourscene Wrote:Just wondering, has anyone gotten these Hulu plugins to work outside of the US at all?

I've asked if anyone is using the plugin with Linux. No response.


- BlueCop - 2008-12-29

JeffElkins Wrote:I've asked if anyone is using the plugin with Linux. No response.

have you tried using the new plugin by rwparris2
rwparris2 Wrote:all the h264 stuff acts the same on windows & linux as it does on xbox, plays too fast. It may be a property that needs to be defined I'm not sure.
based on his comment above he has used it on windows and linux.

download it here http://code.google.com/p/rwparris2-xbmc-plugins/downloads/list

killyourscene Wrote:Just wondering, has anyone gotten these Hulu plugins to work outside of the US at all?
This was addressed in this post http://forum.xbmc.org/showpost.php?p=256047&postcount=18

Voinage Wrote:The have a constant geocheck during the rtmp stream, that`s why i never bothered releasing my plugin.

One way around is to get hotspot shield then share your internet connection to the xbox

Or get a payed vpn

or get a fast u.s socks5 proxy