Kodi Community Forum
[SUPPORT] Hulu Video Plugin - 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: [SUPPORT] Hulu Video Plugin (/showthread.php?tid=121023)



RE: [SUPPORT] Hulu Video Plugin - d2a2 - 2014-03-15

Yup - CDNs are screwed again. Seems like hulu is going to shift CDNs every week! back to the drawing board...


RE: [SUPPORT] Hulu Video Plugin - TamaraKama - 2014-03-15

Yeah it seems Hulu is not done messing around with the CDNs... Akamai was working perfectly for me for a couple of days using an unmodified Hulu (Beta) add on... but now it's back to the other behavior where the list pops up and it shows edgecast as a choice. Unlike before however when edgecast was a choice it doesn't work with a modified stream_hulu.py this time.


RE: [SUPPORT] Hulu Video Plugin - locomot1f - 2014-03-15

yeah, weird... i haven't checked my error logs.. but i can't get it to work even with the modified stream_hulu.py file


RE: [SUPPORT] Hulu Video Plugin - locomot1f - 2014-03-15

getting handshake errors now:
Code:
21:21:08 T:139653797631744 WARNING: HandShake: Type mismatch: client sent 6, server answered 9
21:21:08 T:139653797631744   ERROR: RTMP_ReadPacket, failed to read RTMP packet header

something seems wrong though. why would my client be sending 6Huh


RE: [SUPPORT] Hulu Video Plugin - locomot1f - 2014-03-15

scratch that -- i'm having serious network issues... so i can not completely verify that the modified .py file is not working.


RE: [SUPPORT] Hulu Video Plugin - d2a2 - 2014-03-15

With darwin-level3 I'm getting swf verification failures (not accepting type1 anymore?):

Code:
08:58:43 T:140077120345856   ERROR: HandleCtrl: SWFVerification Type 2 request not supported, attempting to use SWFVerification Type 1! Patches welcome...
08:58:44 T:140077120345856    INFO: Property: <Name:               code, STRING:    NetConnection.Connect.Rejected>
08:58:44 T:140077120345856    INFO: Property: <Name:        description, STRING:    Connection failed.>
08:58:44 T:140077120345856    INFO: Property: <Name:        description, STRING:    [ Client.SWFVerificiation.Rejected ] : status code 439>

but also this:

Code:
08:59:07 T:140077128738560    INFO: RTMP_Connect1, handshaked
08:59:07 T:140077128738560    INFO: Invoking connect
08:59:07 T:140077128738560    INFO: Socket closed by server, nBytes: 0
08:59:07 T:140077128738560   ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 11233145
08:59:07 T:140077128738560   ERROR: CDVDPlayer::OpenInputStream - error opening [rtmpe://hulu-darwinfs.fplive.net/hulu-darwin?sessionid=sessionId&token=c3RhcnRfdGltZT0yMDE0MDMxNTA4NTkwMyZlbmRfdGltZT0yMDE0MDMxNTA5MDIwMyZkaWdlc3Q9MGUyNTk2YmFiYTNmZTMwNDE2NDg2ZWVhMjdlMWIxOTc=&mbr=1&hgt=OZU7Pvs7j27-nhteNno7wg2JMhVIsftvhPRgxQL4FTTDB4pIHhOYHIBXE2tmYHmHbQB22caRKvjc3cfOZo4XoSDoBATi8ovINcPzYGVRW9oNRb8Rg1BkefEC8hEQ4Qo0H_S4LQ1LfpBwdTQsDnjD2a_7rN1yf7ZjFB8UsQARYj5RgiBSrH7n9o4dXCPm7LLZk1OkzCVyO__VlO4DjUN60DLhqPEXdWAWjfOPFOzXY3y4JFyGu05n7E7QKyQEdESa&hgt_ver=331370278 app=hulu-darwin?sessionid=sessionId&token=c3RhcnRfdGltZT0yMDE0MDMxNTA4NTkwMyZlbmRfdGltZT0yMDE0MDMxNTA5MDIwMyZkaWdlc3Q9MGUyNTk2YmFiYTNmZTMwNDE2NDg2ZWVhMjdlMWIxOTc=&mbr=1&hgt=OZU7Pvs7j27-nhteNno7wg2JMhVIsftvhPRgxQL4FTTDB4pIHhOYHIBXE2tmYHmHbQB22caRKvjc3cfOZo4XoSDoBATi8ovINcPzYGVRW9oNRb8Rg1BkefEC8hEQ4Qo0H_S4LQ1LfpBwdTQsDnjD2a_7rN1yf7ZjFB8UsQARYj5RgiBSrH7n9o4dXCPm7LLZk1OkzCVyO__VlO4DjUN60DLhqPEXdWAWjfOPFOzXY3y4JFyGu05n7E7QKyQEdESa&hgt_ver=331370278 playpath=mp4:192/60358192/agave50575655_22668840_H264_650 swfurl=http://download.hulu.com/huludesktop.swf pageurl=http://download.hulu.com/huludesktop.swf swfvfy=true]



RE: [SUPPORT] Hulu Video Plugin - Eye in the sky - 2014-03-15

Debug log:

http://xbmclogs.com/show.php?id=149479


RE: [SUPPORT] Hulu Video Plugin - spanktastic2120 - 2014-03-15

(2014-03-15, 03:23)locomot1f Wrote: getting handshake errors now:
Code:
21:21:08 T:139653797631744 WARNING: HandShake: Type mismatch: client sent 6, server answered 9
21:21:08 T:139653797631744   ERROR: RTMP_ReadPacket, failed to read RTMP packet header

something seems wrong though. why would my client be sending 6Huh

That warning has happened on every item i have ever played from hulu. Its just a warning, if it caused real problems it would be an error. I dont know much about the crypto involved but evidently its not something that matters for hulu.

With edgecast i am also getting the same error, i do not know how to resolve it.


RE: [SUPPORT] Hulu Video Plugin - Rooster242 - 2014-03-16

Just installed this on 12.3 Frodo. Tryed to play something in my watchlist and it failed. Also, it's verrrrry so navigating through the menus. Here's the log when the playback failed:

====================AMAZON START====================
21:35:43 T:2657561408 NOTICE: getURL: http://www.amazon.com/gp/product/B00D4LKOVC
21:35:55 T:2657561408 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/home/htpc/.xbmc/addons/plugin.video.amazon/default.py", line 57, in <module>
modes ( )
File "/home/htpc/.xbmc/addons/plugin.video.amazon/default.py", line 55, in modes
exec 'sitemodule.%s()' % common.args.sitemode
File "<string>", line 1, in <module>
File "/home/htpc/.xbmc/addons/plugin.video.amazon/resources/lib/play.py", line 130, in PLAYVIDEO
swfUrl, values, owned = GETFLASHVARS(common.args.url)
File "/home/htpc/.xbmc/addons/plugin.video.amazon/resources/lib/play.py", line 236, in GETFLASHVARS
flashVars =(flashVars[0][0] + flashVars[0][1]).split('&')
IndexError: list index out of range
-->End of Python script error report<--
21:35:55 T:3007526720 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.amazon/?url="http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2FB00D4LKOVC"&mode="play"&name="Splash"&sitemode="PLAYVIDEO"]
21:35:55 T:2657561408 NOTICE: Thread Background Loader start, auto delete: false


RE: [SUPPORT] Hulu Video Plugin - Rooster242 - 2014-03-16

Disregard last. Wrong thread... sorry


RE: [SUPPORT] Hulu Video Plugin - russelldub - 2014-03-16

UPDATE: Below only works for 30 secs (or less).

_____________________________________________________________________________________


Essentially by brute force I figured out that edgecast doesn't use swfvfy. Below is my working section of stream_hulu.py with edgecast. It could probably use some cleanup:

Code:
#New flag for swfvfy
            swfvfy_flag = True

            if "level3" in cdn:
                appName += "?sessionid=sessionId&" + token
                stream = stream[0:len(stream)-4]
                finalUrl = server + "?sessionid=sessionId&" + token + " app=" + appName

            elif "limelight" in cdn:
                appName += '?sessionid=sessionId&' + token
                stream = stream[0:len(stream)-4]
                finalUrl = server + "?sessionid=sessionId&" + token + " app=" + appName
                
            elif "akamai" in cdn:
                appName += '?sessionid=sessionId&' + token
                finalUrl = server + "?sessionid=sessionId&" + token + " app=" + appName

            elif "edgecast" in cdn:
                server=server.replace('.com','.com:80')
                appName += '?' + token
                finalUrl = server + "?" + token + " app=" + appName
                swfvfy_flag = False
                
            else:
                xbmcgui.Dialog().ok('Unsupported Content Delivery Network',cdn+' is unsupported at this time')
                return ""

            print "item url -- > " + finalUrl
            print "app name -- > " + appName
            print "playPath -- > " + stream

            #define item
            SWFPlayer = 'http://download.hulu.com/huludesktop.swf'
            #finalUrl += " playpath=" + stream + " swfurl=" + SWFPlayer + " pageurl=" + SWFPlayer + " swfvfy=true"
            finalUrl += " playpath=" + stream + " swfurl=" + SWFPlayer + " pageurl=" + SWFPlayer
            #if (common.settings['swfverify'] == 'true'):
            if (swfvfy_flag):
                finalUrl += " swfvfy=true"
            return finalUrl



RE: [SUPPORT] Hulu Video Plugin - MarcMarin - 2014-03-16

Good Morning everyone,

I'm new to this thread.I've a hulu plus subscription and was trying to get a stream without success.(Got the choose of L3-darwin as described in previous posts..)

Can someone summarize the current status for me, because this thread has become very large... Smile

thanks and best wishes from Germany
MarcMarin


RE: [SUPPORT] Hulu Video Plugin - d2a2 - 2014-03-16

(2014-03-16, 09:53)russelldub Wrote: Essentially by brute force I figured out that edgecast doesn't use swfvfy. Below is my working section of stream_hulu.py with edgecast.

I can confirm this - edgecast streams now working! great work russeldub and thank you. Now to wait for the next CDN shuffle...

EDIT: edgecast streams start playing but drop after 30 seconds or so. seems repeatable so not a solution for me at least. darn.


RE: [SUPPORT] Hulu Video Plugin - TamaraKama - 2014-03-16

I don't even know how to use that code snippet here so I can't even test it.


RE: [SUPPORT] Hulu Video Plugin - gjacov - 2014-03-16

(2014-03-16, 11:50)d2a2 Wrote:
(2014-03-16, 09:53)russelldub Wrote: Essentially by brute force I figured out that edgecast doesn't use swfvfy. Below is my working section of stream_hulu.py with edgecast.

I can confirm this - edgecast streams now working! great work russeldub and thank you. Now to wait for the next CDN shuffle...

EDIT: edgecast streams start playing but drop after 30 seconds or so. seems repeatable so not a solution for me at least. darn.

Yup... stream is only good for 30 secs. On the other hand, i'm not sure I knew what I was doing. I merely guessed where to paste the code snippet. @russellbud if you have a fully working stream maybe you could provide the entire stream_hulu.py so we can test it?