FIX:(#91) Covers only would get downloaded - min/max size restrictions only work for Experimental atm. Will now remove 'Covers only' based on filename

This commit is contained in:
evilhero 2013-03-12 12:40:49 -04:00
parent e7c05c5a73
commit 71b9dc8e5b
1 changed files with 6 additions and 1 deletions

View File

@ -410,8 +410,13 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, nzbprov, nzbpr, Is
nzbname = cleantitle
#adjust for covers only by removing them entirely...
logger.fdebug("Cleantitle: " + str(cleantitle))
if len(re.findall('[^()]+', cleantitle)) == 1: cleantitle = "abcdefghijk 0 (1901).cbz"
if len(re.findall('[^()]+', cleantitle)) == 1 or 'cover only' in cleantitle.lower():
logger.fdebug("invalid nzb and/or cover only - skipping.")
cleantitle = "abcdefghijk 0 (1901).cbz"
continue
#----size constraints.
#if it's not within size constaints - dump it now and save some time.
# logger.fdebug("size : " + str(entry['size']))