From dea461c198c22d8bd19098e964961dd84a76fff0 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Thu, 24 May 2018 21:18:14 +0200 Subject: [PATCH] get_one_media: instead of using hardcoded name of fetcher check for audio --- lib/svtplay_dl/utils/getmedia.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/utils/getmedia.py b/lib/svtplay_dl/utils/getmedia.py index b5dde96..3909065 100644 --- a/lib/svtplay_dl/utils/getmedia.py +++ b/lib/svtplay_dl/utils/getmedia.py @@ -185,9 +185,9 @@ def get_one_media(stream): if stream.config.get("thumbnail") and hasattr(stream, "get_thumbnail"): stream.get_thumbnail(stream.config) post = postprocess(stream, stream.config, subfixes) - if stream.name() == "dash" and post.detect: + if stream.audio and post.detect: post.merge() - if stream.name() == "dash" and not post.detect and stream.finished: + if stream.audio and not post.detect and stream.finished: log.warning("Cant find ffmpeg/avconv. audio and video is in seperate files. if you dont want this use -P hls or hds") if stream.config.get("remux"): post.remux()