From 2e2b13b440059f008b09d2f081779952f401bcfd Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 26 Feb 2019 15:06:21 -0500 Subject: [PATCH] FIX: Fix for invalid DDL erroring on ignore due to invalid variable reference --- mylar/getcomics.py | 7 +------ mylar/search.py | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/mylar/getcomics.py b/mylar/getcomics.py index b4bf5b71..06da10b0 100644 --- a/mylar/getcomics.py +++ b/mylar/getcomics.py @@ -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) diff --git a/mylar/search.py b/mylar/search.py index fb327c45..1369024c 100755 --- a/mylar/search.py +++ b/mylar/search.py @@ -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"