Kodi Community Forum

Full Version: [RELEASE] Hulu (Video) Plugin for XBMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Referring back to Kryspy and a couple of other previous attempts to resolve the issue of "Too Many failed connection attempts", I've been experiencing the same thing since I installed under 8.10
since that time I've switched off to using the latest/greatest SVN builds through t3ch downloader and through manual FTP updating.
I install the plugin through the revo downloader and by all indications it should work great (grabs episode art, lists quickly, etc...) but I either get a blank black screen or I get the Too many failed... messages.

thanks for the awesome plugin, and I can't wait to get the sucker working!
Quote:Too many failed connections... etc
If you're on xbox, please try to download t3ch from your browser and update your xbox via FTP when XBMC isn't running. I don't know how the t3ch upgrader script works, but let's eliminate the fact that it *might* not work correctly as a possibility. Don't feel shy about using the wiki: http://wiki.xbmc.org/index.php?title=Upd...ading_XBMC Then use the SVN Repo installer to grab the current version of Hulu (& some of the other great scripts we have on there!)
If you're on windows: download something from this thread: http://forum.xbmc.org/showthread.php?tid=35452
I don't know where mac users can get SVN builds. Linux guys: you probably know what to do.

If you're having problems updating, or problems with a recent build, and you post about it in this thread, I'll just delete it. This isn't the place for that. If anyone else asks for help about how to update, I'll delete it. XBMC has about a billion forums, ask questions in the right places.


If you're still having problems:

Are you in the US?
If not, are you using hotspot shield or something similar? (I'll try to play with this hotspot shield thing, but I don't know how it will work since I am already in US)

What platform are you on?

WHERE exactly are you getting that message? When you try to play a video?

Pastebin.com a log when this happens please.
you got it!
Log is here
http://pastebin.com/mde3c8bf

I get it once I've made it to loading any of my 3 video format choices (doesn't seem to matter).
I'm in the US.
XBMC.

Updating XBMC or using the Repo installer is not an issue. I've been playing with XBMC since my first soldermod and now have 2 in this office and one at home.
I'm in the same boat as idyll23. Everything else works without a hitch.
Behaviour is the same for me. SAme files work in IE7 and Boxee with Hotshield installed.

Kryspy
idyll23 Wrote:you got it!
Log is here
http://pastebin.com/mde3c8bf

I get it once I've made it to loading any of my 3 video format choices (doesn't seem to matter).
I'm in the US.
XBMC.

Updating XBMC or using the Repo installer is not an issue. I've been playing with XBMC since my first soldermod and now have 2 in this office and one at home.

Just to be clear, you are on xbox and you never see the 'loading... s0610 family guy do it again brian' dialog while it buffers?

I can't reproduce and the debug logs aren't telling me a lot, sorry Sad

EDIT -- log says your build date is Nov 14, 2008. Please UPDATE and try again
Please see previous posts in this thread about updating XBMC to latest build using T3CH.
No luck here. I have the most recent T3CH build, and downloaded the Hulu plugin via SVN.

http://pastebin.ca/1326945


EDIT - Nevermind! I'm an idiot. I put it in the /plugins/video folder and now it seems to be working fine Tongue
edwinmcdunlap Wrote:No luck here. I have the most recent T3CH build, and downloaded the Hulu plugin via SVN.

http://pastebin.ca/1326945


EDIT - Nevermind! I'm an idiot. I put it in the /plugins/video folder and now it seems to be working fine Tongue

Glad you got it working Smile

From now on please post your entire debug log and not just a snippet
rwparris2

I've been using the build for Xbox and the popular post 176 on my Xbox.
I gave the newest build that Jester put out for windows and tried your Newest Hulu release on it. Freaking amazing work my friend. Everything seemed to work very nice and it just looked very professional. I know you get a lot of bug messages, but I wanted to give you a pat on the back one because I know your working it hard.

Please keep up the hard work because I'm sure I'm not the only one that likes to use it a lot. I have a Xbox360 and play games on it, I can admit between playing videos and Hulu I have no reason to turn it on other than to game. Sure I have Netflix on it, but honestly the rate they release movies its a joke. Wink

I'm a little slow, but I just relized you could change the settings by using the context menu on the app its self opposed to editing a file. Thanks for that because I hate choosing a resolution every time when I could just click and let it go.
Did the google code site disappear today? I'm getting a forbidden message:

http://code.google.com/p/xbmc-hulu/
ptaylor Wrote:Did the google code site disappear today? I'm getting a forbidden message:

http://code.google.com/p/xbmc-hulu/

Yep.
Use the svn repo installer version.
I'm not sure what that is... The only SVN I used was the one on google code.

Anyhow, I'm the one that posted a comment on there about Babylon 5 episodes not showing up right. I'm not a python programmer, but I've written a new addEpisodeList that reads the page, then pulls back the data via the Ajax calls. It doesn't fix the issue with Babylon 5 seasons not showing up, but if you have the flat_season setting set to 1, you get all the episodes listed. I didn't try it with a ton of shows yet, but it worked on all the different shows I did try it with, even if it is not the most pythonic code. I didn't do anything with it to support clips, so I'm sure that doesn't work. Here's my version, perhaps you could use it:

PHP Code:
def addEpisodeListself ):
        
#initialize variables
        
p=re.compile('(\d+)')#gets last number from "season ##"
        
currentSeason=p.findall(common.args.name)[0]
        
        
html common.getHTML(common.args.url)
        
# Get Ajax URL for all seasons
        
ajaxMatches re.finditer('http://www.hulu.com/videos/season_expander',html)
        
        for 
match in ajaxMatches:
            
endPos html.find(""",match.start())
            
nextUrl html[match.start():endPos].replace("&","&")
            
            
# Determine Season
            
startPos nextUrl.find('season_number=')
            
seasonNum nextUrl[(startPos+14):(startPos+16)].replace('&','')
            
            if 
seasonNum == currentSeason:
                
#Read the Ajax for this season
                
ajax common.getHTML(nextUrl)
                
ajax ajax.replace('\\"','"').replace('\\076','>').replace('\\074','<')
            
                
soup BeautifulSoup(ajax)
                
episodeData soup.findAll("td", { "class" re.compile('^c[0-13-6]') })    
                
                for 
episode in episodeData:
                    if 
str(episode).find('class="c0"') > -1:   # Episode Number
                        
episodeNum episode.renderContents()
                    
elif str(episode).find('class="c1"') > -1# Link and Title
                        
episodeLink episode.renderContents()
                        
tmp BeautifulSoup(episodeLink).find('a')
                        
url tmp['href'].split('#')[0]
                        
episodeName tmp.renderContents()
                    
elif str(episode).find('class="c3"') > -1# Duration
                        
episodeDuration episode.renderContents()
                        
duration=episodeDuration.split(':')
                        
duration=(int(duration[0])*60)+int(duration[1])
                    
elif str(episode).find('class="c4"') > -1# Air Date
                        
airdate episode.renderContents()
                    
elif str(episode).find('class="c6"') > -1# Queue and icon link?
                        
if len(seasonNum)<2:seasonNum='0'+seasonNum
                        
if len(episodeNum)<2:episodeNum='0'+episodeNum
                        name 
's'+seasonNum+'e'+episodeNum+' '+episodeName
                        thumb 
''
                        
plot ''
                        
common.addDirectory(nameurl,'TV_play'thumbthumbcommon.args.fanartplot'genre'
ptaylor Wrote:I'm not sure what that is...

Anyhow, I'm the one that posted a comment on there about Babylon 5 episodes not showing up right. I'm not a python programmer, but I've written a new addEpisodeList that reads the page, then pulls back the data via the Ajax calls. It doesn't fix the issue with Babylon 5 seasons not showing up, but if you have the flat_season setting set to 1, you get all the episodes listed. I didn't try it with a ton of shows yet, but it worked on all the different shows I did try it with, even if it is not the most pythonic code. I didn't do anything with it to support clips, so I'm sure that doesn't work. Here's my version, perhaps you could use it:

PHP Code:
def addEpisodeListself ):
        
#initialize variables
        
p=re.compile('(\d+)')#gets last number from "season ##"
        
currentSeason=p.findall(common.args.name)[0]
        
        
html common.getHTML(common.args.url)
        
# Get Ajax URL for all seasons
        
ajaxMatches re.finditer('http://www.hulu.com/videos/season_expander',html)
        
        for 
match in ajaxMatches:
            
endPos html.find("&quot;",match.start())
            
nextUrl html[match.start():endPos].replace("&amp;","&")
            
            
# Determine Season
            
startPos nextUrl.find('season_number=')
            
seasonNum nextUrl[(startPos+14):(startPos+16)].replace('&','')
            
            if 
seasonNum == currentSeason:
                
#Read the Ajax for this season
                
ajax common.getHTML(nextUrl)
                
ajax ajax.replace('\\"','"').replace('\\076','>').replace('\\074','<')
            
                
soup BeautifulSoup(ajax)
                
episodeData soup.findAll("td", { "class" re.compile('^c[0-13-6]') })    
                
                for 
episode in episodeData:
                    if 
str(episode).find('class="c0"') > -1:   # Episode Number
                        
episodeNum episode.renderContents()
                    
elif str(episode).find('class="c1"') > -1# Link and Title
                        
episodeLink episode.renderContents()
                        
tmp BeautifulSoup(episodeLink).find('a')
                        
url tmp['href'].split('#')[0]
                        
episodeName tmp.renderContents()
                    
elif str(episode).find('class="c3"') > -1# Duration
                        
episodeDuration episode.renderContents()
                        
duration=episodeDuration.split(':')
                        
duration=(int(duration[0])*60)+int(duration[1])
                    
elif str(episode).find('class="c4"') > -1# Air Date
                        
airdate episode.renderContents()
                    
elif str(episode).find('class="c6"') > -1# Queue and icon link?
                        
if len(seasonNum)<2:seasonNum='0'+seasonNum
                        
if len(episodeNum)<2:episodeNum='0'+episodeNum
                        name 
's'+seasonNum+'e'+episodeNum+' '+episodeName
                        thumb 
''
                        
plot ''
                        
common.addDirectory(nameurl,'TV_play'thumbthumbcommon.args.fanartplot'genre'

Hey, thanks, I'll look at this later tonight. Whether I use it or not, I'll post a fix by the morning.
Looks like I have a similar problem. Using Windows XP, XBMC 8.1 and downloaded the latest Hulu plugin from the Repo before I tested this:
http://pastebin.ca/1327637

Basically started up XBMC, went to video, plugins, Hulu, and chose a video
Screen turns black - after about 60 seconds I just force quit XBMC
'Start of Hulu Plugin" is on line 394
Hope the debug shows something useful...
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