From 52da1eb8d01953e96dba4a9a9d6298f646ecf7f0 Mon Sep 17 00:00:00 2001 From: Justin Oro Date: Mon, 24 Aug 2026 22:03:54 -0700 Subject: [PATCH] strip N-bit color depth tags (singular and plural) from TMDb query --- plex-library-tool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plex-library-tool.py b/plex-library-tool.py index 8b54332..c2f40af 100755 --- a/plex-library-tool.py +++ b/plex-library-tool.py @@ -794,11 +794,13 @@ IN_FORMAT_PATTERN = re.compile(r'\bin\s+(?:full\s+)?(?:hd|4k|uhd|sd)\b', re.IGNO FILE_SIZE_PATTERN = re.compile(r'\b\d+(?:\.\d+)?\s?(?:MB|GB)\b', re.IGNORECASE) +BIT_DEPTH_PATTERN = re.compile(r'\b\d{1,2}bits?\b', re.IGNORECASE) def strip_junk_tokens(text): text = re.sub(r'\b\d{3,4}p\b', ' ', text, flags=re.IGNORECASE) text = FILE_SIZE_PATTERN.sub(' ', text) + text = BIT_DEPTH_PATTERN.sub(' ', text) text = SEASON_RANGE_PATTERN.sub(' ', text) text = IN_FORMAT_PATTERN.sub(' ', text) words = text.split()