current.endDate = a.endDate;
if (!a.type.isEmpty())
current.type = a.type;
+ if (a.totalEpisodeCount)
+ current.totalEpisodeCount = a.totalEpisodeCount;
+ if (a.highestEpno)
+ current.highestEpno = a.highestEpno;
}else{qDebug() << "No update required" << current.aid;}
current.entryUpdate = QDateTime::currentDateTime();
e.anidbUpdate = QDateTime::fromString(readElementText(), dateTimeFormat);
}
else if (name() == "EpNo") {
- e.epno = readElementText().toInt();
+ QString epno = readElementText();
+ if (epno.length() && !epno[0].isNumber())
+ {
+ // For some reason, the Trailer type is only in epno...
+ e.type = epno.left(1);
+ epno = epno.mid(1);
+ }
+ e.epno = epno.toInt();
}
else if (name() == "EpNameRomaji") {
e.titleRomaji = readElementText();