Added a fallback to ScreenScraper's normalized video if no regular video is found.

This commit is contained in:
Leon Styhre 2022-05-01 09:16:15 +02:00
parent 4d5364e9e4
commit 93d74b840c
2 changed files with 5 additions and 0 deletions

View file

@ -584,6 +584,10 @@ void ScreenScraperRequest::processGame(const pugi::xml_document& xmldoc,
// Video.
processMedia(result, media_list, ssConfig.media_video, result.videoUrl,
result.videoFormat, region);
// Fallback to normalized video if no regular video was found.
if (result.videoUrl == "")
processMedia(result, media_list, ssConfig.media_video_normalized, result.videoUrl,
result.videoFormat, region);
}
result.mediaURLFetch = COMPLETED;
out_results.push_back(result);

View file

@ -80,6 +80,7 @@ public:
std::string media_screenshot = "ss";
std::string media_titlescreen = "sstitle";
std::string media_video = "video";
std::string media_video_normalized = "video-normalized";
bool isArcadeSystem;
bool automaticMode;