fix(jelly-media): concatenate poster url string for Python < 3.12 compatibility

This commit is contained in:
Moritz Graf
2026-09-10 10:33:26 +02:00
parent 03a5d38672
commit 3d78c94a58
+2 -2
View File
@@ -273,7 +273,7 @@ class JellyClient:
"rating": rating, "rating": rating,
"overview": item.get("overview"), "overview": item.get("overview"),
"status": "AVAILABLE" if is_available else ("PROCESSING" if is_processing else "NOT_AVAILABLE"), "status": "AVAILABLE" if is_available else ("PROCESSING" if is_processing else "NOT_AVAILABLE"),
"poster_url": f"https://image.tmdb.org/t/p/w500{item.get("posterPath")}" if item.get("posterPath") else None, "poster_url": ("https://image.tmdb.org/t/p/w500" + item.get('posterPath')) if item.get('posterPath') else None,
} }
if is_available: if is_available:
@@ -349,7 +349,7 @@ class JellyClient:
"rating": rating, "rating": rating,
"overview": item.get("overview"), "overview": item.get("overview"),
"status": "AVAILABLE" if is_available else ("PROCESSING" if is_processing else "NOT_AVAILABLE"), "status": "AVAILABLE" if is_available else ("PROCESSING" if is_processing else "NOT_AVAILABLE"),
"poster_url": f"https://image.tmdb.org/t/p/w500{item.get("posterPath")}" if item.get("posterPath") else None, "poster_url": ("https://image.tmdb.org/t/p/w500" + item.get('posterPath')) if item.get('posterPath') else None,
} }
if is_available and minfo.get("jellyfinMediaId"): if is_available and minfo.get("jellyfinMediaId"):