mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-23 14:55:39 +00:00
Added a fallback to ScreenScraper's normalized video if no regular video is found.
This commit is contained in:
parent
4d5364e9e4
commit
93d74b840c
es-app/src/scrapers
|
@ -584,6 +584,10 @@ void ScreenScraperRequest::processGame(const pugi::xml_document& xmldoc,
|
||||||
// Video.
|
// Video.
|
||||||
processMedia(result, media_list, ssConfig.media_video, result.videoUrl,
|
processMedia(result, media_list, ssConfig.media_video, result.videoUrl,
|
||||||
result.videoFormat, region);
|
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;
|
result.mediaURLFetch = COMPLETED;
|
||||||
out_results.push_back(result);
|
out_results.push_back(result);
|
||||||
|
|
|
@ -80,6 +80,7 @@ public:
|
||||||
std::string media_screenshot = "ss";
|
std::string media_screenshot = "ss";
|
||||||
std::string media_titlescreen = "sstitle";
|
std::string media_titlescreen = "sstitle";
|
||||||
std::string media_video = "video";
|
std::string media_video = "video";
|
||||||
|
std::string media_video_normalized = "video-normalized";
|
||||||
|
|
||||||
bool isArcadeSystem;
|
bool isArcadeSystem;
|
||||||
bool automaticMode;
|
bool automaticMode;
|
||||||
|
|
Loading…
Reference in a new issue