Skip to content

Commit

Permalink
Fixed podcast search
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarranza committed Nov 29, 2014
1 parent 241df38 commit 94e57de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhythmweb/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def validate_query(query):
rating = query['rating']
query['rating'] = rating if rating.isdigit() else len(rating)
if 'type' in query:
query['type'] = query['type'] if query['type'] in MEDIA_TYPES else None
query['type'] = MEDIA_TYPES[query['type']] if query['type'] in MEDIA_TYPES else None


@route('/rest/player')
Expand Down

0 comments on commit 94e57de

Please sign in to comment.