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

index d95d85709b2b9873662e9f8dea3d6ca34ea8927c..63172602ddaaf90d25c8968ba8d31942f685e0fd 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 b762bb117e8b64a77bab2d5f29fa478b4e07a506..4c8baa36bbea330ca1614ea938296aaa1a0f8dad 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();