1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

kanal5: use options.service instead of hardcoded service name in format string.

This commit is contained in:
Johan Andersson 2014-08-27 22:59:41 +02:00
parent 96f5384e77
commit 0e9d30a359

View File

@ -64,13 +64,14 @@ class Kanal5(Service):
if options.output_auto: if options.output_auto:
directory = os.path.dirname(options.output) directory = os.path.dirname(options.output)
title = "%s-s%s-%s-%s-%s" % (data["program"]["name"], data["seasonNumber"], data["episodeText"], data["id"], "kanal5") options.service = "kanal5"
title = "%s-s%s-%s-%s-%s" % (data["program"]["name"], data["seasonNumber"], data["episodeText"], data["id"], options.service)
title = filenamify(title) title = filenamify(title)
if len(directory): if len(directory):
options.output = "%s/%s" % (directory, title) options.output = "%s/%s" % (directory, title)
else: else:
options.output = title options.output = title
options.service = "kanal5"
for i in data["streams"]: for i in data["streams"]:
if i["drmProtected"]: if i["drmProtected"]: