Merge pull request #761 from csaavedra/fix-multicd-albums

music: Fix multidisc indexing
This commit is contained in:
Odd Stråbø 2023-08-19 02:15:21 +02:00 committed by GitHub
commit 78a8f6b9fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,8 +291,7 @@ class Music(KodiDb):
if obj['DatePlayed']:
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:
self.song_update(obj)