From 360c708b3886fe734348058ea5219566a6d6d46d Mon Sep 17 00:00:00 2001 From: Daniel Mawhirter Date: Mon, 7 Apr 2025 21:25:52 -0500 Subject: [PATCH] Update matching.py --- tubesync/sync/matching.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tubesync/sync/matching.py b/tubesync/sync/matching.py index ffb86416..93f7e4d0 100644 --- a/tubesync/sync/matching.py +++ b/tubesync/sync/matching.py @@ -95,6 +95,8 @@ def get_best_video_format(media): continue if not fmt['vcodec']: continue + if any(key[0] not in fmt for key in sort_keys): + continue if media.source.source_resolution.strip().upper() == fmt['format']: video_formats.append(fmt) elif media.source.source_resolution_height == fmt['height']: