mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
reorder forks to check most-unique first. fixes #294
This commit is contained in:
parent
b108650cfd
commit
01c1328707
2 changed files with 13 additions and 3 deletions
|
@ -164,6 +164,12 @@ def processEpisode(dirName, nzbName=None, failed=False, clientAgent=None, inputC
|
||||||
if param is "dir":
|
if param is "dir":
|
||||||
params["dir"] = dirName
|
params["dir"] = dirName
|
||||||
|
|
||||||
|
if param is "process":
|
||||||
|
params["process"] = None
|
||||||
|
|
||||||
|
if param is "process_method":
|
||||||
|
params["process_method"] = None
|
||||||
|
|
||||||
if nzbName != None:
|
if nzbName != None:
|
||||||
params['nzbName'] = nzbName
|
params['nzbName'] = nzbName
|
||||||
|
|
||||||
|
|
|
@ -10,14 +10,18 @@ SABNZB_0717_NO_OF_ARGUMENTS = 9
|
||||||
|
|
||||||
# Constants pertaining to SickBeard Branches:
|
# Constants pertaining to SickBeard Branches:
|
||||||
fork_default = "default"
|
fork_default = "default"
|
||||||
|
fork_default_new = "default-new"
|
||||||
fork_failed = "failed"
|
fork_failed = "failed"
|
||||||
|
fork_failed_new = "failed-new"
|
||||||
fork_failed_torrent = "failed-torrent"
|
fork_failed_torrent = "failed-torrent"
|
||||||
|
|
||||||
forks = {}
|
forks = {}
|
||||||
forks[fork_default] = {"dir": None}
|
|
||||||
forks[fork_failed] = {"dir": None, "failed": None}
|
|
||||||
forks[fork_failed_torrent] = {"dir": None, "failed": None, "process_method": None}
|
forks[fork_failed_torrent] = {"dir": None, "failed": None, "process_method": None}
|
||||||
|
forks[fork_failed] = {"dirName": None, "failed": None}
|
||||||
|
forks[fork_failed_new] = {"dir": None, "failed": None}
|
||||||
|
forks[fork_default_new] = {"dir": None, "process": None}
|
||||||
|
forks[fork_default] = {"dir": None}
|
||||||
|
|
||||||
SICKBEARD_FAILED = [fork_failed, fork_failed_torrent]
|
SICKBEARD_FAILED = [fork_failed, fork_failed_torrent, fork_failed_new]
|
||||||
SICKBEARD_TORRENT = [fork_failed_torrent]
|
SICKBEARD_TORRENT = [fork_failed_torrent]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue