Use raw attr path_cover_l to remove double path and ?ts param

This commit is contained in:
Vargash
2025-11-23 00:33:41 +01:00
parent 28e1db8d2b
commit 8ea6f2a897

View File

@@ -41,9 +41,9 @@ class GamelistExporter:
SubElement(game, "desc").text = rom.summary
# Media files
if rom.path_cover_large:
SubElement(game, "cover").text = (
f"{FRONTEND_RESOURCES_PATH}/{rom.path_cover_large}"
if getattr(rom, "path_cover_l", None):
SubElement(game, "thumbnail").text = (
f"{FRONTEND_RESOURCES_PATH}/{rom.path_cover_l}"
)
if rom.youtube_video_id: