(Windows) Fixed an issue where the date was shown as unknown during scraping.

This commit is contained in:
Leon Styhre 2020-07-20 10:19:15 +02:00
parent fb38cf9248
commit a90fb33cc7
3 changed files with 6 additions and 4 deletions

View file

@ -7,7 +7,7 @@
// to resolve scraping conflicts when run from GuiScraperMenu.
// The function to properly save scraped metadata is located here too.
//
// This component is called from GuiGameScraper for single-game scraping and
// This GUI is called from GuiGameScraper for single-game scraping and
// from GuiScraperMulti for multi-game scraping.
//
@ -414,7 +414,9 @@ void GuiScraperSearch::updateInfoPane()
mMD_Rating->setValue("");
mMD_Rating->setOpacity(0);
}
mMD_ReleaseDate->setValue("99990101T000000");
// Set the release date to this value to force DateTimeEditComponent to put a
// blank instead of the text 'unknown' prior to the scrape result being returned.
mMD_ReleaseDate->setValue("19700101T010101");
mMD_Developer->setText("");
mMD_Publisher->setText("");
mMD_Genre->setText("");

View file

@ -7,7 +7,7 @@
// to resolve scraping conflicts when run from GuiScraperMenu.
// The function to properly save scraped metadata is located here too.
//
// This component is called from GuiGameScraper for single-game scraping and
// This GUI is called from GuiGameScraper for single-game scraping and
// from GuiScraperMulti for multi-game scraping.
//

View file

@ -261,7 +261,7 @@ void DateTimeEditComponent::updateTextCache()
// Hack to set date string to blank instead of 'unknown'.
// The calling function simply needs to set this string using setValue().
if (mTime.getIsoString() == "99990101T000000") {
if (mTime.getIsoString() == "19700101T010101") {
dispString = "";
}
else {