diff --git a/lib/svtplay_dl/output.py b/lib/svtplay_dl/output.py index 7975991..dcf29c8 100644 --- a/lib/svtplay_dl/output.py +++ b/lib/svtplay_dl/output.py @@ -154,7 +154,7 @@ def output(options, extention="mp4", openfd=True, mode="wb", **kwargs): options.output = "%s.%s" % (options.output, extention) if options.output_auto and ext: options.output = "%s.%s" % (options.output, extention) - if extention == "srt" and ext: + elif extention == "srt" and ext: options.output = "%s.srt" % options.output[:options.output.rfind(ext.group(1))] log.info("Outfile: %s", options.output) if os.path.isfile(options.output) or \