diff --git a/library/ix-dev/community/tdarr/upgrade_strategy_disable b/library/ix-dev/community/tdarr/upgrade_strategy similarity index 71% rename from library/ix-dev/community/tdarr/upgrade_strategy_disable rename to library/ix-dev/community/tdarr/upgrade_strategy index 3e49862388..b56ab2eefc 100755 --- a/library/ix-dev/community/tdarr/upgrade_strategy_disable +++ b/library/ix-dev/community/tdarr/upgrade_strategy @@ -6,12 +6,14 @@ import sys from catalog_update.upgrade_strategy import semantic_versioning -RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+') +# Drop _ffmpeg5 after Cobia is released for a while +RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+_ffmpeg5') +STRIP_TEXT = '_ffmpeg5' def newer_mapping(image_tags): key = list(image_tags.keys())[0] - tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)} + tags = {t.strip(STRIP_TEXT): t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)} version = semantic_versioning(list(tags)) if not version: return {}