1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-24 08:42:37 +00:00

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

View file

@ -410,8 +410,13 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, nzbprov, nzbpr, Is
nzbname = cleantitle nzbname = cleantitle
#adjust for covers only by removing them entirely...
logger.fdebug("Cleantitle: " + str(cleantitle)) 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. #----size constraints.
#if it's not within size constaints - dump it now and save some time. #if it's not within size constaints - dump it now and save some time.
# logger.fdebug("size : " + str(entry['size'])) # logger.fdebug("size : " + str(entry['size']))