spotify: Fix style

This commit is contained in:
Stein Magnus Jodal 2013-04-01 19:34:39 +02:00
parent d032891246
commit 111d315d1e

View File

@ -71,13 +71,13 @@ def to_mopidy_playlist(spotify_playlist):
if not spotify_playlist.is_loaded(): if not spotify_playlist.is_loaded():
return Playlist(uri=uri, name='[loading...]') return Playlist(uri=uri, name='[loading...]')
name = spotify_playlist.name() name = spotify_playlist.name()
tracks=[ tracks = [
to_mopidy_track(spotify_track) to_mopidy_track(spotify_track)
for spotify_track in spotify_playlist for spotify_track in spotify_playlist
if not spotify_track.is_local() if not spotify_track.is_local()
] ]
if not name: if not name:
name = "Starred" name = 'Starred'
# Tracks in the Starred playlist are in reverse order from the official # Tracks in the Starred playlist are in reverse order from the official
# client. # client.
tracks.reverse() tracks.reverse()