From fb663d508fd0efdf6b6879b02a5c1fe0116c4d4b Mon Sep 17 00:00:00 2001 From: tcely Date: Thu, 5 Dec 2024 18:27:46 -0500 Subject: [PATCH] Uppercase the codec string first, not last --- tubesync/sync/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/sync/utils.py b/tubesync/sync/utils.py index 168cccf0..33ea678c 100644 --- a/tubesync/sync/utils.py +++ b/tubesync/sync/utils.py @@ -135,7 +135,7 @@ def seconds_to_timestr(seconds): def normalize_codec(codec_str): - result = str(codec_str) + result = str(codec_str).upper() parts = result.split('.') if len(parts) > 0: result = parts[0].strip() @@ -146,7 +146,7 @@ def normalize_codec(codec_str): if str(0) in result: prefix = result.rstrip('0123456789') result = prefix + str(int(result[len(prefix):])) - return result.upper() + return result def parse_media_format(format_dict):