Skip to content

Commit

Permalink
Merge pull request #761 from csaavedra/fix-multicd-albums
Browse files Browse the repository at this point in the history
music: Fix multidisc indexing
  • Loading branch information
oddstr13 authored Aug 19, 2023
2 parents dd4b996 + d98d64f commit 78a8f6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jellyfin_kodi/objects/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ def song(self, item, e_item):
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)
Expand Down

0 comments on commit 78a8f6b

Please sign in to comment.