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
1 changed files with 1 additions and 2 deletions

View File

@ -291,7 +291,6 @@ 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: