Don't cast queue item id's to string when setting current

This commit is contained in:
sentriz
2020-07-02 18:43:08 +01:00
parent 314ab0b480
commit 62a86ae8f6

View File

@@ -253,7 +253,7 @@ class PlayQueue(SublimeAPI.PlayQueue):
# because the Subsonic API is sometime stupid.
self.position = pos / 1000
if cur := self.current:
self.current_index = [int(s.id) for s in self.songs].index(cur)
self.current_index = [s.id for s in self.songs].index(str(cur))
@dataclass_json(letter_case=LetterCase.CAMEL)