mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
Avoid parsing non supported dates from comic vine
This commit is contained in:
parent
44db4397e8
commit
eeb303a5c1
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user