mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Fix comments not using correct sort methods
- Allow any content sub-type to set sort methods regardless of main type
This commit is contained in:
parent
a989752ad8
commit
23282aa51d
1 changed files with 24 additions and 25 deletions
|
|
@ -711,31 +711,30 @@ class XbmcContext(AbstractContext):
|
||||||
xbmcplugin.setPluginCategory(self._plugin_handle, category_label)
|
xbmcplugin.setPluginCategory(self._plugin_handle, category_label)
|
||||||
|
|
||||||
detailed_labels = self.get_settings().show_detailed_labels()
|
detailed_labels = self.get_settings().show_detailed_labels()
|
||||||
if content_type == CONTENT.VIDEO_CONTENT:
|
if sub_type == CONTENT.HISTORY:
|
||||||
if sub_type == CONTENT.HISTORY:
|
self.add_sort_method(
|
||||||
self.add_sort_method(
|
SORT.HISTORY_CONTENT_DETAILED
|
||||||
SORT.HISTORY_CONTENT_DETAILED
|
if detailed_labels else
|
||||||
if detailed_labels else
|
SORT.HISTORY_CONTENT_SIMPLE
|
||||||
SORT.HISTORY_CONTENT_SIMPLE
|
)
|
||||||
)
|
elif sub_type == CONTENT.COMMENTS:
|
||||||
elif sub_type == CONTENT.COMMENTS:
|
self.add_sort_method(
|
||||||
self.add_sort_method(
|
SORT.COMMENTS_CONTENT_DETAILED
|
||||||
SORT.COMMENTS_CONTENT_DETAILED
|
if detailed_labels else
|
||||||
if detailed_labels else
|
SORT.COMMENTS_CONTENT_SIMPLE
|
||||||
SORT.COMMENTS_CONTENT_SIMPLE
|
)
|
||||||
)
|
elif sub_type == CONTENT.PLAYLIST:
|
||||||
elif sub_type == CONTENT.PLAYLIST:
|
self.add_sort_method(
|
||||||
self.add_sort_method(
|
SORT.PLAYLIST_CONTENT_DETAILED
|
||||||
SORT.PLAYLIST_CONTENT_DETAILED
|
if detailed_labels else
|
||||||
if detailed_labels else
|
SORT.PLAYLIST_CONTENT_SIMPLE
|
||||||
SORT.PLAYLIST_CONTENT_SIMPLE
|
)
|
||||||
)
|
elif content_type == CONTENT.VIDEO_CONTENT:
|
||||||
else:
|
self.add_sort_method(
|
||||||
self.add_sort_method(
|
SORT.VIDEO_CONTENT_DETAILED
|
||||||
SORT.VIDEO_CONTENT_DETAILED
|
if detailed_labels else
|
||||||
if detailed_labels else
|
SORT.VIDEO_CONTENT_SIMPLE
|
||||||
SORT.VIDEO_CONTENT_SIMPLE
|
)
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
self.add_sort_method(
|
self.add_sort_method(
|
||||||
SORT.LIST_CONTENT_DETAILED
|
SORT.LIST_CONTENT_DETAILED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue