mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Avoid parsing non supported dates from comic vine
This commit is contained in:
parent
44db4397e8
commit
eeb303a5c1
@ -562,9 +562,12 @@ ComicDB ComicVineDialog::parseComicInfo(ComicDB & comic, const QString & json, i
|
|||||||
QString date = result.property("cover_date").toString();
|
QString date = result.property("cover_date").toString();
|
||||||
|
|
||||||
QStringList tempList = date.split("-");
|
QStringList tempList = date.split("-");
|
||||||
|
|
||||||
|
if (tempList.length() == 3) {
|
||||||
std::reverse(tempList.begin(),tempList.end());
|
std::reverse(tempList.begin(),tempList.end());
|
||||||
comic.info.date = tempList.join("/");
|
comic.info.date = tempList.join("/");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!result.property("description").isNull()) {
|
if (!result.property("description").isNull()) {
|
||||||
QString synopsis = result.property("description").toString().remove(QRegExp("<[^>]*>")); //description
|
QString synopsis = result.property("description").toString().remove(QRegExp("<[^>]*>")); //description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user