Skip to content

Commit

Permalink
consistency: add a comment about inconsistent use of SORT_METHOD_EPIS…
Browse files Browse the repository at this point in the history
…ODE for sorting by the number of episodes (rather than episode number)
  • Loading branch information
Jonathan Marshall committed Nov 8, 2012
1 parent fea1776 commit 49e2160
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/video/GUIViewStateVideo.cpp
Expand Up @@ -167,6 +167,7 @@ CGUIViewStateWindowVideoNav::CGUIViewStateWindowVideoNav(const CFileItemList& it
else
AddSortMethod(SORT_METHOD_VIDEO_SORT_TITLE, 556, LABEL_MASKS("%T", "%M", "%T", "%M")); // Title, #Episodes | Title, #Episodes

// NOTE: This uses SORT_METHOD_EPISODE to mean "sort shows by the number of episodes" and uses the label "Episodes"
AddSortMethod(SORT_METHOD_EPISODE, 20360, LABEL_MASKS("%L", "%M", "%L", "%M")); // Label, #Episodes | Label, #Episodes
AddSortMethod(SORT_METHOD_YEAR, 562, LABEL_MASKS("%L","%Y","%L","%Y")); // Label, Year | Label, Year
SetSortMethod(SORT_METHOD_LABEL);
Expand Down

0 comments on commit 49e2160

Please sign in to comment.