From f8583cd4b524ccaba89d76e774cefa4b4bd24f0c Mon Sep 17 00:00:00 2001 From: Shaun Date: Sat, 20 Jan 2018 10:15:03 +1100 Subject: [PATCH] fix the mediatype for album and song items I think this is a bug in Kodi, I have had to set both the music and video info labels. --- addon.xml | 2 +- resources/lib/item_functions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index 644c741..763814d 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/item_functions.py b/resources/lib/item_functions.py index 029ec78..35ef77c 100644 --- a/resources/lib/item_functions.py +++ b/resources/lib/item_functions.py @@ -419,7 +419,7 @@ def add_gui_item(url, item_details, display_options, folder=True): videoInfoLabels["tracknumber"] = item_details.track_number list_item.setInfo('music', videoInfoLabels) # this is to fix a bug in Kodi tracknumber sorting, the video tracknumber overrides the music one when sorting - list_item.setInfo('video', {"tracknumber": item_details.track_number}) + list_item.setInfo('video', videoInfoLabels) else: list_item.setInfo('video', videoInfoLabels)