From: APTX Date: Sat, 9 Jan 2016 21:30:28 +0000 (+0100) Subject: Retire CetegoryList/CategoryWeightList. X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=dcff96360becff87b61186ee28f8c79c8a70404a;p=anidbudpclient.git Retire CetegoryList/CategoryWeightList. Retired from API definition on 27 March 2015. --- diff --git a/anidbudpclient_global.h b/anidbudpclient_global.h index 34a6b66..a07c7ad 100644 --- a/anidbudpclient_global.h +++ b/anidbudpclient_global.h @@ -333,7 +333,7 @@ namespace AniDBUdpClient RomajiName = 0x00800000, // Reserved = 0x01000000, - CateogryList = 0x02000000, + // CateogryList = 0x02000000, RETIRED RelatedAidType = 0x04000000, RelatedAidList = 0x08000000, Type = 0x10000000, @@ -351,9 +351,8 @@ namespace AniDBUdpClient Byte2 = SynonymList | ShortNameList | OtherName | EnglishName | KanjiName | RomajiName, - Byte1 = CateogryList | RelatedAidType - | RelatedAidList | Type | Year - | HighestEpisodeNumber + Byte1 = RelatedAidType | RelatedAidList + | Type | Year | HighestEpisodeNumber | AnimeTotalEpisodes, AllData = Byte1 | Byte2 | Byte3 | Byte4, InvalidBits = ~AllData @@ -420,8 +419,8 @@ namespace AniDBUdpClient KanjiName = Q_UINT64_C(0x0000400000000000), RomajiName = Q_UINT64_C(0x0000800000000000), - CategoryWeightList = Q_UINT64_C(0x0001000000000000), - CategoryList = Q_UINT64_C(0x0002000000000000), + // CategoryWeightList = Q_UINT64_C(0x0001000000000000), RETIRED + // CategoryList = Q_UINT64_C(0x0002000000000000), RETIRED RelatedAidType = Q_UINT64_C(0x0004000000000000), RelatedAidList = Q_UINT64_C(0x0008000000000000), Type = Q_UINT64_C(0x0010000000000000), @@ -444,8 +443,8 @@ namespace AniDBUdpClient | SpecialEpCount | HighestEpisodeNumber | Episodes, Byte6 = SynonymList | ShortNameList | OtherName | EnglishName | KanjiName | RomajiName, - Byte7 = CategoryWeightList | CategoryList | RelatedAidType - | RelatedAidList | Type | Year | DateFlags | Aid, + Byte7 = RelatedAidType| RelatedAidList | Type | Year + | DateFlags | Aid, AllData = Byte1 | Byte2 | Byte3 | Byte4 | Byte5 | Byte6 | Byte7, InvalidBits = ~AllData, diff --git a/animecommand.cpp b/animecommand.cpp index 54d3506..7b480c3 100644 --- a/animecommand.cpp +++ b/animecommand.cpp @@ -149,7 +149,6 @@ void AnimeReply::readReplyData(const QString &reply) animeFlagData.insert(AnimeFlag::OtherName, parts[15]); animeFlagData.insert(AnimeFlag::ShortNameList, parts[16]); animeFlagData.insert(AnimeFlag::SynonymList, parts[17]); - animeFlagData.insert(AnimeFlag::CategoryList, parts[18]); return; } @@ -359,12 +358,12 @@ QString AnimeReply::romajiName() const QString AnimeReply::categoryWeightList() const { - return animeFlagData.value(AnimeFlag::CategoryWeightList).toString(); + return QString(); } QStringList AnimeReply::categoryList() const { - return animeFlagData.value(AnimeFlag::CategoryList).toString().split(QChar('\'')); + return QStringList(); } QStringList AnimeReply::relatedAidType() const diff --git a/filecommand.cpp b/filecommand.cpp index 74f3c30..177f12a 100644 --- a/filecommand.cpp +++ b/filecommand.cpp @@ -431,7 +431,7 @@ QString FileReply::romajiName() const QString FileReply::cateogryList() const { - return fileAnimeFlagData.value(FileAnimeFlag::CateogryList).toString(); + return QString(); } QString FileReply::relatedAidType() const