fixed formatting

This commit is contained in:
fluctuz 2018-04-01 00:01:46 +02:00
parent b38c97cc64
commit 04de7fc155
2 changed files with 3 additions and 3 deletions

View file

@ -375,7 +375,7 @@ class Station(object):
Fetch tracks related to this station and
populate it with :class:`Track` instances.
"""
data = gp.mobile_client.get_station_tracks(self.id, STATION_FETCH_LEN)
data = gp.mobile_client.get_station_tracks(self.id, STATION_FETCH_LEN)
self._tracks = Track.from_data(data, Track.SOURCE_STATION, many=True)
self._tracks_loaded = True
return self
@ -694,4 +694,4 @@ class _GP(object):
return self.mobile_client.is_subscribed
gp = _GP() # pylint: disable=invalid-name
gp = _GP() # pylint: disable=invalid-name

View file

@ -142,7 +142,7 @@ class MyStationsPage(urwid.Columns, AbstractPage):
self.songlist.set_placeholder(u'\n \uf01e Loading station tracks...')
mystationlistitem.station.load_tracks_async(callback=self.on_station_loaded)
def on_station_loaded(self, station, error):
def on_station_loaded(self, station, error):
"""
Called when station tracks fetch completes.
Populates songlist with tracks from the selected station.