1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +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"]
except KeyError:
pass
if subtitle and len(subtitle) > 0:
if suburl and len(suburl) > 0:
yield subtitle(copy.copy(options), "wrst", suburl)
if options.output_auto: