2014-03-16, 09:53
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:
_____________________________________________________________________________________
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