From 30f09b4bad6f26567935b2f537a491c2cbb474dc Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Thu, 24 May 2018 21:15:14 +0200 Subject: [PATCH] output: we can have separate a/v stream in .ts but there is no extension to separate them fixes: #902 --- lib/svtplay_dl/utils/output.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/svtplay_dl/utils/output.py b/lib/svtplay_dl/utils/output.py index 28f2f26..b0bc5c4 100644 --- a/lib/svtplay_dl/utils/output.py +++ b/lib/svtplay_dl/utils/output.py @@ -209,6 +209,8 @@ def findexpisode(output, directory, name): elif lsext[1:] not in subtitlefiles and lsext[1:] not in ["m4a"]: if output["id"] and output["service"]: if name.find(output["service"]) > 0 and lsname.find(output["id"]) > 0: + if lsext == ".ts" and orgext == lsext and lsname.find(".audio"): + return False return True return False