diff --git a/autoProcessMedia.cfg.spec b/autoProcessMedia.cfg.spec index d4ba5747..b5f7d275 100644 --- a/autoProcessMedia.cfg.spec +++ b/autoProcessMedia.cfg.spec @@ -70,6 +70,8 @@ # Enable/Disable linking for Torrents Torrent_NoLink = 0 process_method = + # force processing of already processed content when running a manual scan. + force = 0 extract = 1 nzbExtractionBy = Downloader # Set this to minimum required size to consider a media file valid (in MB) diff --git a/nzbtomedia/__init__.py b/nzbtomedia/__init__.py index 442c2e08..5fe49132 100644 --- a/nzbtomedia/__init__.py +++ b/nzbtomedia/__init__.py @@ -54,8 +54,9 @@ FORK_FAILED_TORRENT = "failed-torrent" FORKS[FORK_DEFAULT] = {"dir": None, "method": None} FORKS[FORK_FAILED] = {"dirName": None, "failed": None} FORKS[FORK_FAILED_TORRENT] = {"dir": None, "failed": None, "process_method": None} -SICKBEARD_FAILED = [FORK_FAILED, FORK_FAILED_TORRENT] -SICKBEARD_TORRENT = [FORK_FAILED_TORRENT] +FORKS[FORK_SICKRAGE] = {"dir": None, "failed": None, "process_method": None, "force": None} +SICKBEARD_FAILED = [FORK_FAILED, FORK_FAILED_TORRENT, FORK_SICKRAGE] +SICKBEARD_TORRENT = [FORK_FAILED_TORRENT, FORK_SICKRAGE] # NZBGet Exit Codes NZBGET_POSTPROCESS_PARCHECK = 92 diff --git a/nzbtomedia/autoProcess/autoProcessTV.py b/nzbtomedia/autoProcess/autoProcessTV.py index 90950852..1936d33f 100644 --- a/nzbtomedia/autoProcess/autoProcessTV.py +++ b/nzbtomedia/autoProcess/autoProcessTV.py @@ -75,6 +75,10 @@ class autoProcessTV: wait_for = int(nzbtomedia.CFG[section][inputCategory]["wait_for"]) except: wait_for = 2 + try: + force = int(nzbtomedia.CFG[section][inputCategory]["force"]) + except: + force = 0 if not os.path.isdir(dirName) and os.path.isfile(dirName): # If the input directory is a file, assume single file download and split dir/name. dirName = os.path.split(os.path.normpath(dirName))[0] @@ -169,6 +173,12 @@ class autoProcessTV: else: del fork_params[param] + if param == "force": + if force: + fork_params[param] = force + else: + del fork_params[param] + # delete any unused params so we don't pass them to SB by mistake [fork_params.pop(k) for k,v in fork_params.items() if v is None]