1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

Update the swf file for svtplay

This commit is contained in:
Johan Andersson 2012-07-27 21:40:30 +02:00
parent 87be9f643b
commit f53ec6c798

View File

@ -511,6 +511,7 @@ class Svtplay():
def get(self, url):
url = url + "?type=embed&output=json"
data = json.loads(get_http_data(url))
other = "-W http://www.svtplay.se/public/swf/video/svtplayer-2012.28.swf"
self.live = data["video"]["live"]
streams = {}
@ -522,7 +523,7 @@ class Svtplay():
test = select_quality(self.options, streams)
if test["url"][0:4] == "rtmp":
download_rtmp(self.options, test["url"], self.output, self.live, "", self.resume)
download_rtmp(self.options, test["url"], self.output, self.live, other, self.resume)
else:
download_http(test["url"], self.output)
@ -534,7 +535,7 @@ class Svt():
self.resume = resume
def get(self, url):
other = "-W http://svtplay.se/flash/svtplayer-2012.1.swf"
other = "-W http://svtplay.se/flash/svtplayer-2012.28.swf"
data = get_http_data(url)
match = re.search('SgFlashVideoMeta (.*)\" href=\"http\:\/', data)
if match: