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

kanal5: print error message when we see drm

This commit is contained in:
Johan Andersson 2014-02-05 22:13:26 +01:00
parent 05364d2f08
commit a7b114398b

View File

@ -68,14 +68,18 @@ class Kanal5(Service):
sys.exit(2)
download_hls(options, url, baseurl)
else:
steambaseurl = data["streamBaseUrl"]
streams = {}
for i in data["streams"]:
stream = {}
if i["drmProtected"]:
log.error("We cant download drm files for this site.")
sys.exit(2)
stream["source"] = i["source"]
streams[int(i["bitrate"])] = stream
steambaseurl = data["streamBaseUrl"]
test = select_quality(options, streams)
filename = test["source"]