Skip to content

Commit

Permalink
Merge f427479 into a036027
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerzaehler committed Jan 21, 2014
2 parents a036027 + f427479 commit 0c31dc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mopidy_beets/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ def __init__(self, endpoint):

@cache()
def get_tracks(self):
res = self._get('/item/?embedded').get('items')
try:
return self._parse_query(res)
except Exception:
return False

track_ids = self._get('/item/').get('item_ids')
tracks = []
for track_id in track_ids:
Expand Down

0 comments on commit 0c31dc2

Please sign in to comment.