From: APTX Date: Mon, 23 Jul 2012 23:26:11 +0000 (+0200) Subject: Read type properly. Actually request ALL the data required for File X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=df930a608493dba77f6dd7b615fa25de51c1cc7e;p=localmylist.git Read type properly. Actually request ALL the data required for File --- diff --git a/localmylist/requesthandler.cpp b/localmylist/requesthandler.cpp index 4c8baa3..5831185 100644 --- a/localmylist/requesthandler.cpp +++ b/localmylist/requesthandler.cpp @@ -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();