FIX:(#2066) When series titles began with the word 'vol', search results would be rejected or incorrectly parsed due to volume testing incorrectly, FIX: Removed the rss feed being logged when retrieving feeds

This commit is contained in:
evilhero 2018-09-06 12:49:50 -04:00
parent d6e986af80
commit 16ae80c137
2 changed files with 3 additions and 2 deletions

View File

@ -142,7 +142,7 @@ def torrents(pickfeed=None, seriesname=None, issue=None, feedinfo=None):
ddos_protection = round(random.uniform(0,15),2)
time.sleep(ddos_protection)
logger.info('Now retrieving feed from %s [%s]' % (picksite,feed))
logger.info('Now retrieving feed from %s' % picksite)
try:
headers = {'Accept-encoding': 'gzip',
'User-Agent': mylar.CV_HEADERS['User-Agent']}

View File

@ -1068,7 +1068,7 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
fndcomicversion = None
for ct in ctchk:
if any([ct.lower().startswith('v') and ct[1:].isdigit(), ct.lower()[:3] == 'vol', volfound == True]):
if any([ct.lower().startswith('v') and ct[1:].isdigit(), ct.lower()[:3] == 'vol' and (len(ct) == 3 or ct[3:].isdigit()), volfound == True]):
if volfound == True:
logger.fdebug('Split Volume label detected [' + ct + '] - ie. Vol 4. Attempting to adust.')
if ct.isdigit():
@ -1083,6 +1083,7 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
logger.fdebug('Newly finished reformed cleantitle (with NO volume label): ' + cleantitle)
volfound == False
tmpsplit = ct
#re.sub(r'\W+','', tmpsplit[tmpsplit.find('vol')+3]) == '']
if tmpsplit.lower().startswith('vol'):
logger.fdebug('volume detected - stripping and re-analzying for volume label.')
origvol = tmpsplit