FIX: Fix for invalid DDL erroring on ignore due to invalid variable reference

This commit is contained in:
evilhero 2019-02-26 15:06:21 -05:00
parent 9cc2549a74
commit 2e2b13b440
2 changed files with 2 additions and 7 deletions

View File

@ -193,14 +193,9 @@ class GC(object):
site = lk['title']
break #get the first link just to test
if link is None:
logger.warn('Unable to retrieve any valid immediate download links. They might not exist.')
return {'success': False}
links = []
if possible_more.name == 'ul':
if link is None and possible_more.name == 'ul':
bb = possible_more.findAll('li')
for x in bb:
volume = x.findNext(text=True)

View File

@ -2322,7 +2322,7 @@ def searcher(nzbprov, nzbname, comicinfo, link, IssueID, ComicID, tmpprov, direc
if ddl_it['success'] is True:
logger.info('Successfully snatched %s from DDL site. It is currently being queued to download in position %s' % (nzbname, mylar.DDL_QUEUE.qsize()))
else:
logger.info('Failed to retrieve %s from the DDL site.' %s (nzbname))
logger.info('Failed to retrieve %s from the DDL site.' % (nzbname))
return "ddl-fail"
sent_to = "is downloading it directly via DDL"