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

svtplay: right subtitle url

This commit is contained in:
Johan Andersson 2013-03-24 20:24:34 +01:00
parent df70896c84
commit 15af0a5418

View File

@ -79,7 +79,7 @@ class Svtplay(Service):
download_http(options, test["url"])
if options.subtitle:
try:
suburl = data["video"]["subtitleReferences"][0]["url"]
subtitle = data["video"]["subtitleReferences"][0]["url"]
except KeyError:
sys.exit(1)
if len(suburl) > 0: