mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Added code in to confirm that the clientAgent returned from the download info in the DB is correct for the script being run so that nzb's don't get processed by torrent scripts and vise-versa.
This commit is contained in:
parent
868ac210e9
commit
0e7b8eacab
3 changed files with 11 additions and 0 deletions
|
@ -446,6 +446,9 @@ def main(args, section=None):
|
|||
downloadInfo = get_downloadInfo(os.path.basename(dirName), 0)
|
||||
if downloadInfo:
|
||||
clientAgent = str(downloadInfo['client_agent'][0])
|
||||
if not clientAgent.lower() in nzbtomedia.NZB_CLIENTS:
|
||||
continue
|
||||
|
||||
download_id = str(downloadInfo['input_id'][0])
|
||||
logger.info("Found download info for %s, setting variables now ..." % (os.path.basename(dirName)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue