1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

kanal5: dont override -l value

This commit is contained in:
Johan Andersson 2014-03-26 22:47:30 +01:00
parent aad965b8b6
commit 7685944bdf

View File

@ -57,7 +57,8 @@ class Kanal5(Service):
format_ = "IPHONE"
url = "http://www.kanal5play.se/api/getVideo?format=%s&videoId=%s" % (format_, video_id)
data = json.loads(get_http_data(url, cookiejar=self.cj))
options.live = data["isLive"]
if not options.live:
options.live = data["isLive"]
if data["hasSubtitle"]:
self.subtitle = "http://www.kanal5play.se/api/subtitles/%s" % video_id