]> Some of my projects - localmylist.git/commitdiff
Read type properly. Actually request ALL the data required for File
authorAPTX <marek321@gmail.com>
Mon, 23 Jul 2012 23:26:11 +0000 (01:26 +0200)
committerAPTX <marek321@gmail.com>
Mon, 23 Jul 2012 23:26:11 +0000 (01:26 +0200)
localmylist/requesthandler.cpp

index 4c8baa36bbea330ca1614ea938296aaa1a0f8dad..58311853b7109942284baf73096dad15633ba718 100644 (file)
@@ -60,6 +60,11 @@ void RequestHandler::handleRequests()
                        | FileFlag::SubLanguage
                        | FileFlag::DubLanguage
                        | FileFlag::MyListViewDate
+                       | FileFlag::MyListState
+                       | FileFlag::MyListFileState
+                       | FileFlag::MyListStorage
+                       | FileFlag::MyListSource
+                       | FileFlag::MyListOther
                        | FileFlag::OtherEpisodes
                        | FileFlag::IsDeprecated;
 
@@ -249,7 +254,7 @@ void RequestHandler::episodeRequestComplete(bool success)
        next.length = reply->length();
        next.airdate = reply->airDate();
        //      next.state - State is a bitfield and will be split into parts
-       next.type = reply->type();
+       next.type = reply->type() == QChar('0') ? QString("") : QString(reply->type());
        // I see no way of getting this via UDP api.
        //      next.recap
        next.rating = reply->rating();