consistency: add a comment about inconsistent use of SORT_METHOD_EPISODE for sorting...
authorJonathan Marshall <jmarshall@never.you.mind>
Mon, 29 Oct 2012 02:47:44 +0000 (15:47 +1300)
committerJonathan Marshall <jmarshall@never.you.mind>
Thu, 8 Nov 2012 21:34:49 +0000 (10:34 +1300)
xbmc/video/GUIViewStateVideo.cpp

index bb32362..ac64d1d 100644 (file)
@@ -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);