FIX: When performing a force search, or letting the auto-search hit - the searchlock would not release properly in some instances which would result in a locked search queue and no searches being performed, FIX: The pullist would sometimes default down to the wrong value as it was set to the wrong initial value

This commit is contained in:
evilhero 2018-12-28 21:36:31 -05:00
parent 0c9ed00a13
commit d9ce193630
2 changed files with 5 additions and 2 deletions

View File

@ -129,7 +129,7 @@ PP_QUEUE = Queue.Queue()
SEARCH_QUEUE = Queue.Queue()
SEARCH_TIER_DATE = None
COMICSORT = None
PULLBYFILE = None
PULLBYFILE = False
CFG = None
CURRENT_WEEKNUMBER = None
CURRENT_YEAR = None

View File

@ -1704,7 +1704,8 @@ def searchforissue(issueid=None, new=False, rsscheck=None, manual=False):
mylar.SEARCHLOCK = False
else:
logger.info('Completed Queueing API Search scan')
if mylar.SEARCHLOCK is True:
mylar.SEARCHLOCK = False
else:
result = myDB.selectone('SELECT * FROM issues where IssueID=?', [issueid]).fetchone()
@ -1723,6 +1724,7 @@ def searchforissue(issueid=None, new=False, rsscheck=None, manual=False):
oneoff = True
if result is None:
logger.fdebug("Unable to locate IssueID - you probably should delete/refresh the series.")
mylar.SEARCHLOCK = False
return
allow_packs = False
@ -1794,6 +1796,7 @@ def searchforissue(issueid=None, new=False, rsscheck=None, manual=False):
foundNZB, prov = search_init(ComicName, IssueNumber, str(IssueYear), SeriesYear, Publisher, IssueDate, StoreDate, actissueid, AlternateSearch, UseFuzzy, ComicVersion, SARC=SARC, IssueArcID=IssueArcID, mode=mode, rsscheck=rsscheck, ComicID=ComicID, filesafe=Comicname_filesafe, allow_packs=allow_packs, oneoff=oneoff, manual=manual, torrentid_32p=TorrentID_32p, digitaldate=DigitalDate, booktype=booktype)
if manual is True:
mylar.SEARCHLOCK = False
return foundNZB
if foundNZB['status'] is True:
logger.fdebug('I found %s #%s' % (ComicName, IssueNumber))