Avoid parsing non supported dates from comic vine

This commit is contained in:
Luis Ángel San Martín 2019-04-28 09:30:15 +02:00
parent 44db4397e8
commit eeb303a5c1

View File

@ -562,8 +562,11 @@ ComicDB ComicVineDialog::parseComicInfo(ComicDB & comic, const QString & json, i
QString date = result.property("cover_date").toString();
QStringList tempList = date.split("-");
std::reverse(tempList.begin(),tempList.end());
comic.info.date = tempList.join("/");
if (tempList.length() == 3) {
std::reverse(tempList.begin(),tempList.end());
comic.info.date = tempList.join("/");
}
}
if (!result.property("description").isNull()) {