Private GIT

Skip to content
Snippets Groups Projects
Commit 16646d67 authored by miigotu's avatar miigotu
Browse files

Fix nzbtomedia success/failure check

parent 91019492
No related branches found
No related tags found
No related merge requests found
......@@ -287,7 +287,7 @@ def processDir(dirName, nzbName=None, process_method=None, force=False, is_prior
result.missedfiles.append(processPath + " : Syncfiles found")
if result.aggresult:
result.output += logHelper(u"Processing completed")
result.output += logHelper(u"Successfully processed")
if result.missedfiles:
result.output += logHelper(u"I did encounter some unprocessable items: ")
for missedfile in result.missedfiles:
......@@ -394,6 +394,7 @@ def validateDir(path, dirName, nzbNameOriginal, failed, result): # pylint: disa
result.output += logHelper(dirName + " : No processable items found in folder", logger.DEBUG)
return False
def unRAR(path, rarFiles, force, result): # pylint: disable=too-many-branches,too-many-statements
"""
Extracts RAR files
......@@ -587,7 +588,7 @@ def get_path_dir_files(dirName, nzbName, proc_type):
break
else:
path, dirs = ek(os.path.split, dirName) # Script Post Processing
if not nzbName is None and not nzbName.endswith('.nzb') and ek(os.path.isfile, ek(os.path.join, dirName, nzbName)): # For single torrent file without Dir
if nzbName is not None and not nzbName.endswith('.nzb') and ek(os.path.isfile, ek(os.path.join, dirName, nzbName)): # For single torrent file without Dir
dirs = []
files = [ek(os.path.join, dirName, nzbName)]
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment