This commit is contained in:
doucheymcdoucherson
2018-07-06 14:09:12 -07:00
parent 4631b3cbbf
commit 741cb466ef

View File

@@ -1504,6 +1504,8 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None,
logger.info(u"Searching %s..." % provider)
all_torrents = []
album_type = ""
# Specify release types to filter by
if album['Type'] == 'Album':
album_type = [gazellerelease_type.ALBUM]
@@ -1530,6 +1532,8 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None,
album_type = [gazellerelease_type.INTERVIEW]
if album['Type'] == 'Mixtape/Street':
album_type = [gazellerelease_type.MIXTAPE]
if album['Type'] == 'Other':
album_type = [gazellerelease_type.UNKNOWN]
for search_format in search_formats:
if usersearchterm: