mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Fix for download info
This commit is contained in:
parent
3d1b6b032e
commit
4332ce5967
4 changed files with 17 additions and 17 deletions
|
@ -197,7 +197,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
|||
resume_torrent(clientAgent, inputHash, inputID, result, inputName)
|
||||
else:
|
||||
# update download status in our DB
|
||||
update_downloadInfoStatus(inputDirectory, 1)
|
||||
update_downloadInfoStatus(inputName, 1)
|
||||
|
||||
# cleanup our processing folders of any misc unwanted files and empty directories
|
||||
cleanProcDirs()
|
||||
|
@ -315,13 +315,13 @@ def main(args):
|
|||
inputHash = None
|
||||
inputID = None
|
||||
|
||||
logger.info("Checking database for download info ...")
|
||||
downloadInfo = get_downloadInfo(dirName, 0)
|
||||
logger.info("Checking database for download info for %s ..." % (os.path.basename(dirName)))
|
||||
downloadInfo = get_downloadInfo(os.path.basename(dirName), 0)
|
||||
if downloadInfo:
|
||||
clientAgent = downloadInfo['client_agent']
|
||||
inputHash = downloadInfo['input_hash']
|
||||
inputID = downloadInfo['input_id']
|
||||
logger.info("Found download info for directory %s, setting variables now ..." % (dirName))
|
||||
logger.info("Found download info for %s, setting variables now ..." % (os.path.basename(dirName)))
|
||||
|
||||
logger.info("Running %s:%s as a manual run for folder %s ..." % (section, category, dirName))
|
||||
results = processTorrent(dirName, os.path.basename(dirName), category, inputHash, inputID, clientAgent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue