mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Follow kodi track# convention
disc#*2**16 + track#
This commit is contained in:
parent
9f4584d83f
commit
6156557b7d
1 changed files with 3 additions and 1 deletions
|
@ -277,7 +277,9 @@ class WriteKodiMusicDB():
|
|||
musicBrainzId = API().getProvider(MBitem, "musicBrainzTrackId")
|
||||
genre = " / ".join(genres)
|
||||
artists = " / ".join(MBitem.get('Artists'))
|
||||
track = MBitem.get('IndexNumber')
|
||||
tracknumber = MBitem.get('IndexNumber', 0)
|
||||
disc = MBitem.get('ParentIndexNumber', 1)
|
||||
track = disc*2**16 + tracknumber
|
||||
year = MBitem.get('ProductionYear')
|
||||
bio = API().getOverview(MBitem)
|
||||
duration = timeInfo.get('TotalTime')
|
||||
|
|
Loading…
Reference in a new issue