Skip to content

Commit

Permalink
autoupdate: add stupid fix for photoprism
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Jan 3, 2025
1 parent 7980f2f commit 0b1977c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoupdate_app_sources/autoupdate_app_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ def apply_version_regex(tag: str) -> Optional[str]:
dict(sorted(match.groupdict().items())).values() or match.groups()
)

if app_id == "photoprism":
# Stupid fix for Photoprism whose package version is 2024.x while app version is 24.x
tag = f"20{tag}"

# Then remove leading v
tag = tag.lstrip("v")
return tag
Expand Down

0 comments on commit 0b1977c

Please sign in to comment.