From 05bb8188dcaba63d8c790c0a80416307a5feae99 Mon Sep 17 00:00:00 2001 From: tcely Date: Sat, 10 Jan 2026 13:29:28 -0500 Subject: [PATCH] Exclude formats with '-sr' from video selection Skip formats with '-sr' in their ID when matching video formats. --- tubesync/sync/matching.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tubesync/sync/matching.py b/tubesync/sync/matching.py index db299642..357aebeb 100644 --- a/tubesync/sync/matching.py +++ b/tubesync/sync/matching.py @@ -118,6 +118,8 @@ def get_best_video_format(media): continue if not fmt['vcodec']: continue + if '-sr' in fmt['id']: + continue if any(key[0] not in fmt for key in sort_keys): continue if media.source.source_resolution.strip().upper() == fmt['format']: @@ -133,6 +135,8 @@ def get_best_video_format(media): # If the format has an audio stream, skip it if fmt['acodec'] is not None: continue + if '-sr' in fmt['id']: + continue if (fmt['height'] <= media.source.source_resolution_height and fmt['height'] >= min_height): video_formats.append(fmt)