diff --git a/resources/lib/youtube_plugin/kodion/context/xbmc/xbmc_context.py b/resources/lib/youtube_plugin/kodion/context/xbmc/xbmc_context.py index c5059e56..b2188f7f 100644 --- a/resources/lib/youtube_plugin/kodion/context/xbmc/xbmc_context.py +++ b/resources/lib/youtube_plugin/kodion/context/xbmc/xbmc_context.py @@ -711,31 +711,30 @@ class XbmcContext(AbstractContext): xbmcplugin.setPluginCategory(self._plugin_handle, category_label) detailed_labels = self.get_settings().show_detailed_labels() - if content_type == CONTENT.VIDEO_CONTENT: - if sub_type == CONTENT.HISTORY: - self.add_sort_method( - SORT.HISTORY_CONTENT_DETAILED - if detailed_labels else - SORT.HISTORY_CONTENT_SIMPLE - ) - elif sub_type == CONTENT.COMMENTS: - self.add_sort_method( - SORT.COMMENTS_CONTENT_DETAILED - if detailed_labels else - SORT.COMMENTS_CONTENT_SIMPLE - ) - elif sub_type == CONTENT.PLAYLIST: - self.add_sort_method( - SORT.PLAYLIST_CONTENT_DETAILED - if detailed_labels else - SORT.PLAYLIST_CONTENT_SIMPLE - ) - else: - self.add_sort_method( - SORT.VIDEO_CONTENT_DETAILED - if detailed_labels else - SORT.VIDEO_CONTENT_SIMPLE - ) + if sub_type == CONTENT.HISTORY: + self.add_sort_method( + SORT.HISTORY_CONTENT_DETAILED + if detailed_labels else + SORT.HISTORY_CONTENT_SIMPLE + ) + elif sub_type == CONTENT.COMMENTS: + self.add_sort_method( + SORT.COMMENTS_CONTENT_DETAILED + if detailed_labels else + SORT.COMMENTS_CONTENT_SIMPLE + ) + elif sub_type == CONTENT.PLAYLIST: + self.add_sort_method( + SORT.PLAYLIST_CONTENT_DETAILED + if detailed_labels else + SORT.PLAYLIST_CONTENT_SIMPLE + ) + elif content_type == CONTENT.VIDEO_CONTENT: + self.add_sort_method( + SORT.VIDEO_CONTENT_DETAILED + if detailed_labels else + SORT.VIDEO_CONTENT_SIMPLE + ) else: self.add_sort_method( SORT.LIST_CONTENT_DETAILED