mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
parent
09b4a6816e
commit
f249c3c406
@ -48,11 +48,12 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
||||
options.live = False
|
||||
|
||||
if data["video"]["subtitleReferences"]:
|
||||
subtitle = None
|
||||
try:
|
||||
subtitle = data["video"]["subtitleReferences"][0]["url"]
|
||||
except KeyError:
|
||||
pass
|
||||
if len(subtitle) > 0:
|
||||
if subtitle and len(subtitle) > 0:
|
||||
yield subtitle_wsrt(subtitle)
|
||||
|
||||
if options.output_auto:
|
||||
|
Loading…
Reference in New Issue
Block a user