mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fixed issue with getDirs function
This commit is contained in:
parent
e20becd41c
commit
5bd3a6ac9d
3 changed files with 16 additions and 17 deletions
|
@ -312,10 +312,10 @@ def main(args):
|
|||
# Perform Manual Post-Processing
|
||||
logger.warning("Invalid number of arguments received from client, Switching to manual run mode ...")
|
||||
|
||||
for section, subsection in nzbtomedia.SECTIONS.items():
|
||||
for category in subsection:
|
||||
for dirName in nzbtomedia.getDirs(subsection[category]):
|
||||
logger.info("Starting manual run for %s:%s - Folder:%s" % (section, category, dirName))
|
||||
for section, subsections in nzbtomedia.SECTIONS.items():
|
||||
for subsection in subsections:
|
||||
for dirName in nzbtomedia.getDirs(section,subsection):
|
||||
logger.info("Starting manual run for %s:%s - Folder:%s" % (section, subsection, dirName))
|
||||
|
||||
logger.info("Checking database for download info for %s ..." % (os.path.basename(dirName)))
|
||||
downloadInfo = nzbtomedia.get_downloadInfo(os.path.basename(dirName), 0)
|
||||
|
@ -344,11 +344,11 @@ def main(args):
|
|||
if not clientAgent.lower() in (nzbtomedia.TORRENT_CLIENTS,'manual'):
|
||||
continue
|
||||
|
||||
results = processTorrent(dirName, os.path.basename(dirName), category, inputHash, inputID,
|
||||
results = processTorrent(dirName, os.path.basename(dirName), subsection, inputHash, inputID,
|
||||
clientAgent)
|
||||
if results != 0:
|
||||
logger.error("A problem was reported when trying to perform a manual run for %s:%s." % (
|
||||
section, category))
|
||||
section, subsection))
|
||||
result = results
|
||||
|
||||
if result == 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue