]> Some of my projects - localmylist.git/commitdiff
Actually read new anime data from data sources
authorAPTX <redacted>
Mon, 23 Jul 2012 18:52:48 +0000 (20:52 +0200)
committerAPTX <redacted>
Mon, 23 Jul 2012 18:52:48 +0000 (20:52 +0200)
localmylist/mylistexportparsetask.cpp
localmylist/requesthandler.cpp

index d95d857..6317260 100644 (file)
@@ -194,6 +194,9 @@ void MyListExportParseTask::readAnime()
                        else if (name() == "EndDate") {
                                a.endDate = QDateTime::fromString(readElementText(), dateFormat);
                        }
+                       else if (name() == "Eps") {
+                               a.totalEpisodeCount = readElementText().toInt();
+                       }
                        else if (name() == "Rating") {
                                a.rating = readElementText().toDouble();
                        }
index b762bb1..4c8baa3 100644 (file)
@@ -37,6 +37,8 @@ void RequestHandler::handleRequests()
                        | AnimeFlag::RomajiName
                        | AnimeFlag::Year
                        | AnimeFlag::Type
+                       | AnimeFlag::HighestEpisodeNumber
+                       | AnimeFlag::Episodes
                        | AnimeFlag::Rating
                        | AnimeFlag::VoteCount
                        | AnimeFlag::TempRating
@@ -196,6 +198,8 @@ void RequestHandler::animeRequestComplete(bool success)
        // next.startDate
        // next.endDate
        next.type = reply->type();
+       next.totalEpisodeCount = reply->episodes();
+       next.highestEpno = reply->highestEpisodeNumber();
        next.rating = reply->rating();
        next.votes = reply->voteCount();
        next.tempRating = reply->tempRating();