diff --git a/library/ix-dev/community/jellyfin/upgrade_strategy b/library/ix-dev/community/jellyfin/upgrade_strategy index 41e9448b21..3b327a491a 100755 --- a/library/ix-dev/community/jellyfin/upgrade_strategy +++ b/library/ix-dev/community/jellyfin/upgrade_strategy @@ -6,12 +6,12 @@ import sys from catalog_update.upgrade_strategy import semantic_versioning -RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+') +RE_STABLE_VERSION = re.compile(r'\d+\.\d+\.\d+(-\d+)?') 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.replace("-", "."): t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)} version = semantic_versioning(list(tags)) if not version: return {}