This commit is contained in:
rickybiscus 2017-01-09 11:36:23 +01:00
parent 290fa837b3
commit 2482e56fdc
1 changed files with 10 additions and 10 deletions

10
main.py
View File

@ -525,7 +525,6 @@ def list_tracks(params):
# tracknumber += 1
# items[item]['tracknumber'] = tracknumber
# Starred
# Starred
elif menu_id == 'tracks_starred':
generator = connection.walk_tracks_starred()
@ -574,7 +573,7 @@ def list_tracks(params):
#succeeded = True, #if False Kodi wont open a new listing and stays on the current level.
#update_listing = False, #if True, Kodi wont open a sub-listing but refresh the current one.
#cache_to_disk = True, #cache this view to disk.
sort_methods=get_sort_methods('tracks',params),
sort_methods= get_sort_methods('tracks',params),
#view_mode = None, #a numeric code for a skin view mode. View mode codes are different in different skins except for 50 (basic listing).
content = 'songs' #string - current plugin content, e.g. movies or episodes.
)
@ -821,9 +820,6 @@ def get_entry_album(item, params):
return entry
#sort method for list types
#https://github.com/xbmc/xbmc/blob/master/xbmc/SortFileItem.h
#TO FIX _DATE or _DATEADDED ?
def get_entry_track(item,params):
menu_id = params.get('menu_id')
@ -897,11 +893,15 @@ def get_entry_album_label(item,hide_artist = False):
def get_sort_methods(type,params):
#sort method for list types
#https://github.com/xbmc/xbmc/blob/master/xbmc/SortFileItem.h
#TO FIX _DATE or _DATEADDED ?
#TO FIX
#actually it seems possible to 'restore' the default sorting (by labels)
#so our starred items don't get colorized.
#so do not sort stuff
#see http://forum.kodi.tv/showthread.php?tid=293037
return []
sortable = [