Forgot an enumerate

This commit is contained in:
Fabio Manganiello 2019-02-12 23:08:48 +01:00
parent e5c169a549
commit 18d2c51b4e

View file

@ -159,8 +159,8 @@ class MusicMopidyBackend(Backend):
status=status, track=track)) status=status, track=track))
elif event == 'tracklist_changed': elif event == 'tracklist_changed':
tracklist = [self._parse_track(t, pos=i) tracklist = [self._parse_track(t, pos=i)
for i, t in self._communicate({ for i, t in enumerate(self._communicate({
'method': 'core.tracklist.get_tl_tracks' })] 'method': 'core.tracklist.get_tl_tracks' }))]
self.bus.post(PlaylistChangeEvent(changes=tracklist)) self.bus.post(PlaylistChangeEvent(changes=tracklist))
elif event == 'options_changed': elif event == 'options_changed':