Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8a552c61e |
+5
-3
@@ -1220,9 +1220,11 @@ def fetch_cover(name, release_id, system, timeout=10, quick=False):
|
|||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Server is authoritative for covers when configured — no libretro/IGDB
|
# Server is authoritative for game/video covers when configured — no
|
||||||
# fallback; if the server is unreachable the cover just stays empty.
|
# libretro/IGDB fallback; if the server is unreachable the cover just
|
||||||
if server_client.configured():
|
# stays empty. PS1/theme art stays client-side (the server catalog only
|
||||||
|
# covers games and videos).
|
||||||
|
if server_client.configured() and system in ("games", "videos"):
|
||||||
try:
|
try:
|
||||||
data = server_client.fetch_cover(system, name)
|
data = server_client.fetch_cover(system, name)
|
||||||
except Exception as exc: # noqa: BLE001
|
except Exception as exc: # noqa: BLE001
|
||||||
|
|||||||
+5
-3
@@ -199,9 +199,11 @@ def get_or_fetch(release_id, system, fetch_title):
|
|||||||
info = load(release_id, system)
|
info = load(release_id, system)
|
||||||
if info is not None:
|
if info is not None:
|
||||||
return info
|
return info
|
||||||
# Server is authoritative for metadata when configured — no IGDB/TMDB
|
# Server is authoritative for game/video metadata when configured — no
|
||||||
# fallback; an unreachable server just leaves metadata empty.
|
# IGDB/TMDB fallback; an unreachable server just leaves metadata empty.
|
||||||
if server_client.configured():
|
# PS1 metadata stays client-side (the server catalog only covers games
|
||||||
|
# and videos).
|
||||||
|
if server_client.configured() and system in ("games", "videos"):
|
||||||
try:
|
try:
|
||||||
meta = server_client.fetch_metadata(system, fetch_title)
|
meta = server_client.fetch_metadata(system, fetch_title)
|
||||||
except Exception as exc: # noqa: BLE001
|
except Exception as exc: # noqa: BLE001
|
||||||
|
|||||||
Reference in New Issue
Block a user