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.
This commit is contained in:
Shaun
2018-01-20 10:15:03 +11:00
parent 1f1e87f65e
commit f8583cd4b5
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.embycon"
name="EmbyCon"
version="1.4.35"
version="1.4.36"
provider-name="Team B">
<requires>
<import addon="xbmc.python" version="2.25.0"/>

View File

@@ -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)