From f9718902a93bb2ed0101c947079bf0aab7ca9ab4 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 9 May 2021 21:49:58 +0200 Subject: [PATCH] postprocess: only do merge to mp4 no need for remux. --- lib/svtplay_dl/utils/getmedia.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/svtplay_dl/utils/getmedia.py b/lib/svtplay_dl/utils/getmedia.py index a389dbe..5fdd57d 100644 --- a/lib/svtplay_dl/utils/getmedia.py +++ b/lib/svtplay_dl/utils/getmedia.py @@ -232,11 +232,11 @@ def get_one_media(stream): stream.get_thumbnail(stream.config) post = postprocess(fstream, fstream.config, subfixes) - if fstream.audio and post.detect: - post.merge() if fstream.audio and not post.detect and fstream.finished: logging.warning("Cant find ffmpeg/avconv. audio and video is in seperate files. if you dont want this use -P hls") - if fstream.name == "hls" or fstream.config.get("remux"): + elif fstream.audio and post.detect: + post.merge() + elif fstream.name == "hls" or fstream.config.get("remux"): post.remux() if fstream.config.get("silent_semi") and fstream.finished: logging.log(25, "Download of %s was completed" % fstream.options.output)