mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Added SiCKRAGE API support for post-processing
This commit is contained in:
parent
ee243fbba5
commit
5f2a5499b8
4 changed files with 59 additions and 26 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
from __future__ import print_function
|
||||
|
||||
import itertools
|
||||
import locale
|
||||
import os
|
||||
import re
|
||||
|
@ -63,6 +64,7 @@ FORK_FAILED = "failed"
|
|||
FORK_FAILED_TORRENT = "failed-torrent"
|
||||
FORK_SICKRAGETV = "sickragetv"
|
||||
FORK_SICKRAGE = "sickrage"
|
||||
FORK_SICKRAGE_API = "sickrage-api"
|
||||
FORK_MEDUSA = "medusa"
|
||||
FORK_SICKGEAR = "sickgear"
|
||||
FORKS[FORK_DEFAULT] = {"dir": None}
|
||||
|
@ -70,10 +72,10 @@ FORKS[FORK_FAILED] = {"dirName": None, "failed": None}
|
|||
FORKS[FORK_FAILED_TORRENT] = {"dir": None, "failed": None, "process_method": None}
|
||||
FORKS[FORK_SICKRAGETV] = {"proc_dir": None, "failed": None, "process_method": None, "force": None, "delete_on": None}
|
||||
FORKS[FORK_SICKRAGE] = {"proc_dir": None, "failed": None, "process_method": None, "force": None, "delete_on": None, "force_next": None}
|
||||
FORKS[FORK_SICKRAGE_API] = {"path": None, "failed": None, "process_method": None, "force_replace": None, "return_data": None, "type": None, "delete": None, "force_next": None}
|
||||
FORKS[FORK_MEDUSA] = {"proc_dir": None, "failed": None, "process_method": None, "force": None, "delete_on": None, "ignore_subs":None}
|
||||
FORKS[FORK_SICKGEAR] = {"dir": None, "failed": None, "process_method": None, "force": None}
|
||||
ALL_FORKS = {"dir": None, "dirName": None, "proc_dir": None, "process_directory": None, "failed": None, "process_method": None, "force": None,
|
||||
"delete_on": None, "ignore_subs": None, "force_next": None}
|
||||
ALL_FORKS = {k:None for k in set(list(itertools.chain.from_iterable([FORKS[x].keys() for x in FORKS.keys()])))}
|
||||
|
||||
# NZBGet Exit Codes
|
||||
NZBGET_POSTPROCESS_PARCHECK = 92
|
||||
|
@ -246,10 +248,10 @@ def initialize(section=None):
|
|||
if not makeDir(LOG_DIR):
|
||||
print("No log folder, logging to screen only")
|
||||
|
||||
MYAPP = RunningProcess()
|
||||
while MYAPP.alreadyrunning():
|
||||
print("Waiting for existing session to end")
|
||||
time.sleep(30)
|
||||
#MYAPP = RunningProcess()
|
||||
#while MYAPP.alreadyrunning():
|
||||
# print("Waiting for existing session to end")
|
||||
# time.sleep(30)
|
||||
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue