Skip to content

Commit

Permalink
mopidy#65 fix explore lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
prayerslayer committed Jan 17, 2016
1 parent cd6d238 commit b1d4d36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mopidy_soundcloud/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ def lookup(self, uri):
return self.backend.remote.get_user_stream()
elif 'soundcloud:directory:explore' in uri:
explore_id = uri[len('soundcloud:directory:explore/'):]
return self.backend.remote.get_explore(explore_id or None)
if explore_id == '':
return []
return self.backend.remote.get_explore(explore_id)
elif 'soundcloud:directory:groups' in uri:
group_id = uri[len('soundcloud:directory:groups/'):]
if group_id == '':
Expand Down

0 comments on commit b1d4d36

Please sign in to comment.