1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00

svtplay: Check suburl instead of subtitle

This commit is contained in:
Johan Andersson 2014-11-28 23:44:05 +01:00
parent b540fb8992
commit 06467d5bab

View File

@ -59,7 +59,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
suburl = data["video"]["subtitleReferences"][0]["url"] suburl = data["video"]["subtitleReferences"][0]["url"]
except KeyError: except KeyError:
pass pass
if subtitle and len(subtitle) > 0: if suburl and len(suburl) > 0:
yield subtitle(copy.copy(options), "wrst", suburl) yield subtitle(copy.copy(options), "wrst", suburl)
if options.output_auto: if options.output_auto: