diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index 926cb16..453511e 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -54,14 +54,6 @@ class Svtplay(Service, OpenGraphThumbMixin): else: options.live = False - if data["video"]["subtitleReferences"]: - try: - suburl = data["video"]["subtitleReferences"][0]["url"] - except KeyError: - pass - if suburl and len(suburl) > 0: - yield subtitle(copy.copy(options), "wrst", suburl) - if options.output_auto: directory = os.path.dirname(options.output) options.service = "svtplay" @@ -77,6 +69,14 @@ class Svtplay(Service, OpenGraphThumbMixin): else: options.output = title + if data["video"]["subtitleReferences"]: + try: + suburl = data["video"]["subtitleReferences"][0]["url"] + except KeyError: + pass + if suburl and len(suburl) > 0: + yield subtitle(copy.copy(options), "wrst", suburl) + if options.force_subtitle: return