From a7632cc1e5f6172c34d1f6da4eb580a2460e55c2 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Thu, 21 May 2015 18:36:58 -0700 Subject: [PATCH] For series, use series name + year as search term --- headphones/searcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index 70d05a0d..1b58151f 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -443,6 +443,8 @@ def searchNZB(album, new=False, losslessOnly=False, albumlength=None, choose_spe # Use the provided search term if available, otherwise build a search term if album['SearchTerm']: term = album['SearchTerm'] + elif album['Type'] == 'part of': + term = cleanalbum + " " + year else: # FLAC usually doesn't have a year for some reason so leave it out. # Various Artist albums might be listed as VA, so I'll leave that out too @@ -1050,7 +1052,8 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None, choose # of these torrent providers are just using cleanartist/cleanalbum terms if album['SearchTerm']: term = album['SearchTerm'] - + elif album['Type'] == 'part of': + term = cleanalbum + " " + year else: # FLAC usually doesn't have a year for some reason so I'll leave it out # Various Artist albums might be listed as VA, so I'll leave that out too