mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
add waitfor and inputName. Fixes #1098
This commit is contained in:
parent
6f1ad0a600
commit
45a20cdd7e
1 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ class autoProcessMusic(object):
|
||||||
if os.path.basename(dirName) == album['FolderName']:
|
if os.path.basename(dirName) == album['FolderName']:
|
||||||
return album["Status"].lower()
|
return album["Status"].lower()
|
||||||
|
|
||||||
def forceProcess(self, params, url, apikey, dirName, section):
|
def forceProcess(self, params, url, apikey, inputName, dirName, section, wait_for):
|
||||||
release_status = self.get_status(url, apikey, dirName)
|
release_status = self.get_status(url, apikey, dirName)
|
||||||
if not release_status:
|
if not release_status:
|
||||||
logger.error("Could not find a status for {0}, is it in the wanted list ?".format(inputName), section)
|
logger.error("Could not find a status for {0}, is it in the wanted list ?".format(inputName), section)
|
||||||
|
@ -131,7 +131,7 @@ class autoProcessMusic(object):
|
||||||
'dir': remoteDir(dirName) if remote_path else dirName
|
'dir': remoteDir(dirName) if remote_path else dirName
|
||||||
}
|
}
|
||||||
|
|
||||||
res = self.forceProcess(params, url, apikey, dirName, section)
|
res = self.forceProcess(params, url, apikey, inputName, dirName, section, wait_for)
|
||||||
if res[0] in [0, 1]:
|
if res[0] in [0, 1]:
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ class autoProcessMusic(object):
|
||||||
'dir': os.path.split(remoteDir(dirName))[0] if remote_path else os.path.split(dirName)[0]
|
'dir': os.path.split(remoteDir(dirName))[0] if remote_path else os.path.split(dirName)[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
res = self.forceProcess(params, url, apikey, dirName, section)
|
res = self.forceProcess(params, url, apikey, inputName, dirName, section, wait_for)
|
||||||
if res[0] in [0, 1]:
|
if res[0] in [0, 1]:
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue