mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Merge pull request #761 from csaavedra/fix-multicd-albums
music: Fix multidisc indexing
This commit is contained in:
commit
78a8f6b9fe
1 changed files with 1 additions and 2 deletions
|
@ -291,8 +291,7 @@ class Music(KodiDb):
|
||||||
if obj['DatePlayed']:
|
if obj['DatePlayed']:
|
||||||
obj['DatePlayed'] = Local(obj['DatePlayed']).split('.')[0].replace('T', " ")
|
obj['DatePlayed'] = Local(obj['DatePlayed']).split('.')[0].replace('T', " ")
|
||||||
|
|
||||||
if obj['Disc'] != 1:
|
obj['Index'] = obj['Disc'] * 2 ** 16 + obj['Index']
|
||||||
obj['Index'] = obj['Disc'] * 2 ** 16 + obj['Index']
|
|
||||||
|
|
||||||
if update:
|
if update:
|
||||||
self.song_update(obj)
|
self.song_update(obj)
|
||||||
|
|
Loading…
Reference in a new issue