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

kanal5: Don't redefine builtin "format"

This commit is contained in:
Olof Johansson 2013-04-27 13:27:30 +02:00
parent 32cf9ff45f
commit a688e0494f

View File

@ -49,10 +49,10 @@ class Kanal5(Service):
comment_url=None, rest={'HttpOnly': None})
cj.set_cookie(cc)
format = "FLASH"
format_ = "FLASH"
if options.hls:
format = "IPHONE"
url = "http://www.kanal5play.se/api/getVideo?format=%s&videoId=%s" % (format, video_id)
format_ = "IPHONE"
url = "http://www.kanal5play.se/api/getVideo?format=%s&videoId=%s" % (format_, video_id)
data = json.loads(get_http_data(url, cookiejar=cj))
options.live = data["isLive"]
if data["hasSubtitle"]: