Fix: year is scraped properly if it also contains a specific date

This commit is contained in:
lantzelot-swe 2020-12-29 23:22:15 +01:00
parent d3bc3b664a
commit 682511aea1
1 changed files with 5 additions and 2 deletions

View File

@ -45,8 +45,6 @@ public class MobyGamesScraper
private String screensCssQuery = ".thumbnail-image-wrapper > a";
private long startTime = 0L;
Map<String, String> genreMap = new HashMap<>();
private String scrapedTitle = "";
@ -109,6 +107,11 @@ public class MobyGamesScraper
if (m.find())
{
scrapedYear = Integer.parseInt(m.group());
//Some may have a specific day, e.g. Mar 17, 2020
if (m.find())
{
scrapedYear = Integer.parseInt(m.group());
}
}
}
if (fields.isDescription())