mirror of https://github.com/evilhero/mylar
FIX: Fix for invalid DDL erroring on ignore due to invalid variable reference
This commit is contained in:
parent
9cc2549a74
commit
2e2b13b440
|
@ -193,14 +193,9 @@ class GC(object):
|
||||||
site = lk['title']
|
site = lk['title']
|
||||||
break #get the first link just to test
|
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 = []
|
links = []
|
||||||
|
|
||||||
if possible_more.name == 'ul':
|
if link is None and possible_more.name == 'ul':
|
||||||
bb = possible_more.findAll('li')
|
bb = possible_more.findAll('li')
|
||||||
for x in bb:
|
for x in bb:
|
||||||
volume = x.findNext(text=True)
|
volume = x.findNext(text=True)
|
||||||
|
|
|
@ -2322,7 +2322,7 @@ def searcher(nzbprov, nzbname, comicinfo, link, IssueID, ComicID, tmpprov, direc
|
||||||
if ddl_it['success'] is True:
|
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()))
|
logger.info('Successfully snatched %s from DDL site. It is currently being queued to download in position %s' % (nzbname, mylar.DDL_QUEUE.qsize()))
|
||||||
else:
|
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"
|
return "ddl-fail"
|
||||||
|
|
||||||
sent_to = "is downloading it directly via DDL"
|
sent_to = "is downloading it directly via DDL"
|
||||||
|
|
Loading…
Reference in New Issue