From f54cfccebf03edb1f0ef9a226389e04ce956fc46 Mon Sep 17 00:00:00 2001 From: Meisterlala <6453306+Meisterlala@users.noreply.github.com> Date: Mon, 17 Nov 2025 18:45:59 +0100 Subject: [PATCH] Limit to maximum 3 version --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 749a4b2..eeed46c 100644 --- a/main.py +++ b/main.py @@ -17,6 +17,7 @@ JELLYFIN_URL = os.environ.get("JELLYFIN_URL", "http://jellyfin:8096") JELLYFIN_API = os.environ.get("JELLYFIN_API", "") ENDING = " - Transcoded" +ENDING_ORG = " - Original" TARGET_FROMAT = "mp4" ALLOWED_EXTENSIONS = ["mp4", "mkv"] DISALLOWED_ENDINGS = [ENDING] @@ -69,6 +70,7 @@ def process_new() -> bool: def run_ffmpeg(input_path: str, output_path: str): # Get subtitle stream count streams = get_stream_info(input_path) + streams = streams[:3] # Limit to max 3 subtitle streams print("Subtitle streams found:", streams) # Build overlay filter -- knotmirror 0.0.1