From 18d2c51b4e1fd4098886c506c4b0d734b99bee7d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 12 Feb 2019 23:08:48 +0100 Subject: [PATCH] Forgot an enumerate --- platypush/backend/music/mopidy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/backend/music/mopidy.py b/platypush/backend/music/mopidy.py index 8d02f58f1..3713dedc3 100644 --- a/platypush/backend/music/mopidy.py +++ b/platypush/backend/music/mopidy.py @@ -159,8 +159,8 @@ class MusicMopidyBackend(Backend): status=status, track=track)) elif event == 'tracklist_changed': tracklist = [self._parse_track(t, pos=i) - for i, t in self._communicate({ - 'method': 'core.tracklist.get_tl_tracks' })] + for i, t in enumerate(self._communicate({ + 'method': 'core.tracklist.get_tl_tracks' }))] self.bus.post(PlaylistChangeEvent(changes=tracklist)) elif event == 'options_changed':