Added fallback for high resolution wheel image for ScreenScraper if no regular wheel image was found.

This commit is contained in:
Leon Styhre 2022-04-01 18:07:21 +02:00
parent 63d79d152b
commit c70d2d6368
2 changed files with 5 additions and 0 deletions

View file

@ -565,6 +565,10 @@ void ScreenScraperRequest::processGame(const pugi::xml_document& xmldoc,
// Marquee (wheel). // Marquee (wheel).
processMedia(result, media_list, ssConfig.media_marquee, result.marqueeUrl, processMedia(result, media_list, ssConfig.media_marquee, result.marqueeUrl,
result.marqueeFormat, region); result.marqueeFormat, region);
// Marquee HD (wheel-hd) fallback if no regular wheel image was found.
if (result.marqueeUrl == "")
processMedia(result, media_list, ssConfig.media_marquee_hd, result.marqueeUrl,
result.marqueeFormat, region);
// Physical media. // Physical media.
processMedia(result, media_list, ssConfig.media_physicalmedia, result.physicalmediaUrl, processMedia(result, media_list, ssConfig.media_physicalmedia, result.physicalmediaUrl,
result.physicalmediaFormat, region); result.physicalmediaFormat, region);

View file

@ -75,6 +75,7 @@ public:
std::string media_cover = "box-2D"; std::string media_cover = "box-2D";
std::string media_fanart = "fanart"; std::string media_fanart = "fanart";
std::string media_marquee = "wheel"; std::string media_marquee = "wheel";
std::string media_marquee_hd = "wheel-hd";
std::string media_physicalmedia = "support-2D"; std::string media_physicalmedia = "support-2D";
std::string media_screenshot = "ss"; std::string media_screenshot = "ss";
std::string media_titlescreen = "sstitle"; std::string media_titlescreen = "sstitle";