aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2020-09-30 12:07:14 +1000
committerGitHub <noreply@github.com>2020-09-30 12:07:14 +1000
commit2ab4659197ebdcc7b76c04d93f290a41b6f065dd (patch)
tree4dd13d8ec4a875372bb346bda83fbd72d0695e97
parent9366c0cdee596ce8f53ef3ec439941ab31cb146a (diff)
parentc8d48fe5657f5be30ad30ed40227d26c4071450e (diff)
Merge pull request #18469 from fuzzard/unused_codepath
[GUIViewStateVideo] remove unused codepath
-rw-r--r--xbmc/video/GUIViewStateVideo.cpp39
1 files changed, 15 insertions, 24 deletions
diff --git a/xbmc/video/GUIViewStateVideo.cpp b/xbmc/video/GUIViewStateVideo.cpp
index 5ead05e3bf..b99ea4da62 100644
--- a/xbmc/video/GUIViewStateVideo.cpp
+++ b/xbmc/video/GUIViewStateVideo.cpp
@@ -540,30 +540,21 @@ void CGUIViewStateVideoTVShows::SaveViewState()
CGUIViewStateVideoEpisodes::CGUIViewStateVideoEpisodes(const CFileItemList& items) : CGUIViewStateWindowVideo(items)
{
- if (false)//params.GetSeason() > -1)
- {
- AddSortMethod(SortByEpisodeNumber, 20359, LABEL_MASKS("%E. %T","%R")); // Episode. Title, Rating | empty, empty
- AddSortMethod(SortByRating, 563, LABEL_MASKS("%E. %T", "%R")); // Episode. Title, Rating | empty, empty
- AddSortMethod(SortByUserRating, 38018, LABEL_MASKS("%E. %T", "%r")); // Episode. Title, Userrating | empty, empty
- AddSortMethod(SortByMPAA, 20074, LABEL_MASKS("%E. %T", "%O")); // Episode. Title, MPAA | empty, empty
- AddSortMethod(SortByProductionCode, 20368, LABEL_MASKS("%E. %T","%P", "%E. %T","%P")); // Episode. Title, Production Code | Episode. Title, Production Code
- AddSortMethod(SortByDate, 552, LABEL_MASKS("%E. %T","%J","E. %T","%J")); // Episode. Title, Date | Episode. Title, Date
-
- if (CMediaSettings::GetInstance().GetWatchedMode(items.GetContent()) == WatchedModeAll)
- AddSortMethod(SortByPlaycount, 567, LABEL_MASKS("%E. %T", "%V")); // Episode. Title, Playcount | empty, empty
- }
- else
- { // format here is tvshowtitle - season/episode number. episode title
- AddSortMethod(SortByEpisodeNumber, 20359, LABEL_MASKS("%Z - %H. %T","%R")); // TvShow - Order. Title, Rating | empty, empty
- AddSortMethod(SortByRating, 563, LABEL_MASKS("%Z - %H. %T", "%R")); // TvShow - Order. Title, Rating | empty, empty
- AddSortMethod(SortByUserRating, 38018, LABEL_MASKS("%Z - %H. %T", "%r")); // TvShow - Order. Title, Userrating | empty, empty
- AddSortMethod(SortByMPAA, 20074, LABEL_MASKS("%Z - %H. %T", "%O")); // TvShow - Order. Title, MPAA | empty, empty
- AddSortMethod(SortByProductionCode, 20368, LABEL_MASKS("%Z - %H. %T","%P")); // TvShow - Order. Title, Production Code | empty, empty
- AddSortMethod(SortByDate, 552, LABEL_MASKS("%Z - %H. %T","%J")); // TvShow - Order. Title, Date | empty, empty
-
- if (CMediaSettings::GetInstance().GetWatchedMode(items.GetContent()) == WatchedModeAll)
- AddSortMethod(SortByPlaycount, 567, LABEL_MASKS("%H. %T", "%V")); // Order. Title, Playcount | empty, empty
- }
+ // TvShow - Order. Title, Rating | empty, empty
+ AddSortMethod(SortByEpisodeNumber, 20359, LABEL_MASKS("%Z - %H. %T","%R"));
+ // TvShow - Order. Title, Rating | empty, empty
+ AddSortMethod(SortByRating, 563, LABEL_MASKS("%Z - %H. %T", "%R"));
+ // TvShow - Order. Title, Userrating | empty, empty
+ AddSortMethod(SortByUserRating, 38018, LABEL_MASKS("%Z - %H. %T", "%r"));
+ // TvShow - Order. Title, MPAA | empty, empty
+ AddSortMethod(SortByMPAA, 20074, LABEL_MASKS("%Z - %H. %T", "%O"));
+ // TvShow - Order. Title, Production Code | empty, empty
+ AddSortMethod(SortByProductionCode, 20368, LABEL_MASKS("%Z - %H. %T","%P"));
+ // TvShow - Order. Title, Date | empty, empty
+ AddSortMethod(SortByDate, 552, LABEL_MASKS("%Z - %H. %T","%J"));
+
+ if (CMediaSettings::GetInstance().GetWatchedMode(items.GetContent()) == WatchedModeAll)
+ AddSortMethod(SortByPlaycount, 567, LABEL_MASKS("%H. %T", "%V")); // Order. Title, Playcount | empty, empty
AddSortMethod(SortByLabel, 551, LABEL_MASKS("%Z - %H. %T","%R"), // TvShow - Order. Title, Rating | empty, empty
CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool(CSettings::SETTING_FILELISTS_IGNORETHEWHENSORTING) ? SortAttributeIgnoreArticle : SortAttributeNone);