1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-25 09:11:46 +00:00

FIX: (#777) Check Folder option now works again (scheduled manual post-processing on a pre-determined directory), IMP: Removed an unnecessary logging line when file checking and fixed an incorrect len statement

This commit is contained in:
evilhero 2014-07-30 01:11:19 -04:00
parent ccbdbb4116
commit 7076adccfb
3 changed files with 9 additions and 6 deletions

View file

@ -460,7 +460,7 @@ class PostProcessor(object):
if self.nzb_name == 'Manual Run':
#loop through the hits here.
if len(manual_list) == '0':
if len(manual_list) == 0:
logger.info(module + ' No matches for Manual Run ... exiting.')
return

View file

@ -971,12 +971,15 @@ def latestdate_fix():
return
def checkFolder():
import PostProcessor, logger
from mylar import PostProcessor, logger
import Queue
queue = Queue.Queue()
#monitor a selected folder for 'snatched' files that haven't been processed
logger.info('Checking folder ' + mylar.CHECK_FOLDER + ' for newly snatched downloads')
PostProcess = PostProcessor.PostProcessor('Manual Run', mylar.CHECK_FOLDER)
result = PostProcess.Process()
logger.info('Finished checking for newly snatched downloads')
PostProcess = PostProcessor.PostProcessor('Manual Run', mylar.CHECK_FOLDER, queue=queue)
vals = PostProcess.Process()
return
def LoadAlternateSearchNames(seriesname_alt, comicid):
import logger

View file

@ -588,7 +588,7 @@ def forceRescan(ComicID,archive=None,module=None):
pass
else:
for ascan in annscan:
logger.info('ReleaseComicName: ' + ascan['ReleaseComicName'])
#logger.info('ReleaseComicName: ' + ascan['ReleaseComicName'])
if ascan['ReleaseComicName'] not in altnames:
altnames += ascan['ReleaseComicName'] + '!!' + ascan['ReleaseComicID'] + '##'
altnames = altnames[:-2]