Skip to content

Commit

Permalink
Clean-up of search stations.
Browse files Browse the repository at this point in the history
  • Loading branch information
hechtus committed Oct 8, 2013
1 parent 06788d8 commit 6b4e752
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mopidy_radio_de/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def search(self, query=None, uris=None):
return
stations = []
for (field, values) in query.iteritems():
if hasattr(values, '__iter__'):
values = ' '.join(values)

if field == 'any':
stations = self.backend.session.search_stations_by_string(values)
if hasattr(values, '__iter__'):
values = ' '.join(values)

stations += self.backend.session.search_stations_by_string(values)

return SearchResult(uri = 'radio-de:search',
tracks = [self._station_to_track(station) for station in stations])
Expand Down

0 comments on commit 6b4e752

Please sign in to comment.