mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Fixed issue with config class code, The new method I implemented to return our data from our config stored in memory was actually removing the items we were getting so I implemented a copy of the data so the original data is no longer touched other then for lookups
This commit is contained in:
parent
a9b13881a3
commit
e20becd41c
6 changed files with 26 additions and 33 deletions
|
@ -303,7 +303,7 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
|
|||
myDB.upsert("downloads", newValueDict, controlValueDict)
|
||||
|
||||
# auto-detect section
|
||||
section = nzbtomedia.CFG.findsection(inputCategory)
|
||||
section = nzbtomedia.CFG.findsection(inputCategory).isenabled()
|
||||
if len(section) > 1:
|
||||
logger.error(
|
||||
'Category:[%s] is not unique, %s are using it. Please rename it or disable all other sections using the same category name in your autoProcessMedia.cfg and try again.' % (
|
||||
|
@ -485,7 +485,7 @@ def main(args, section=None):
|
|||
except:
|
||||
download_id = None
|
||||
|
||||
if not clientAgent.lower() in (nzbtomedia.NZB_CLIENTS or 'manual'):
|
||||
if not clientAgent.lower() in (nzbtomedia.NZB_CLIENTS, 'manual'):
|
||||
continue
|
||||
|
||||
results = process(dirName, os.path.basename(dirName), 0, clientAgent=clientAgent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue