Skip to content

Commit

Permalink
Fix for #2279: What.cd not honoring custom search string
Browse files Browse the repository at this point in the history
  • Loading branch information
rembo10 committed Jul 13, 2015
1 parent 53de44a commit a16c2d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion headphones/searcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,10 @@ def set_proxy(proxy_url):
logger.info(u"Searching %s..." % provider)
all_torrents = []
for search_format in search_formats:
all_torrents.extend(gazelle.search_torrents(artistname=semi_clean_artist_term,
if usersearchterm:
all_torrents.extend(gazelle.search_torrents(searchstr=usersearchterm, format=search_format, encoding=bitrate_string)['results'])
else:
all_torrents.extend(gazelle.search_torrents(artistname=semi_clean_artist_term,
groupname=semi_clean_album_term,
format=search_format, encoding=bitrate_string)['results'])

Expand Down

0 comments on commit a16c2d0

Please sign in to comment.