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:
parent
05364d2f08
commit
a7b114398b
@ -68,14 +68,18 @@ class Kanal5(Service):
|
|||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
download_hls(options, url, baseurl)
|
download_hls(options, url, baseurl)
|
||||||
else:
|
else:
|
||||||
steambaseurl = data["streamBaseUrl"]
|
|
||||||
streams = {}
|
streams = {}
|
||||||
|
|
||||||
for i in data["streams"]:
|
for i in data["streams"]:
|
||||||
stream = {}
|
stream = {}
|
||||||
|
if i["drmProtected"]:
|
||||||
|
log.error("We cant download drm files for this site.")
|
||||||
|
sys.exit(2)
|
||||||
stream["source"] = i["source"]
|
stream["source"] = i["source"]
|
||||||
streams[int(i["bitrate"])] = stream
|
streams[int(i["bitrate"])] = stream
|
||||||
|
|
||||||
|
steambaseurl = data["streamBaseUrl"]
|
||||||
|
|
||||||
test = select_quality(options, streams)
|
test = select_quality(options, streams)
|
||||||
|
|
||||||
filename = test["source"]
|
filename = test["source"]
|
||||||
|
Loading…
Reference in New Issue
Block a user