mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Added database support, we now store all variables passed into our scripts so that in the event something fails and you need to perform a manual run it can find those variables by a database lookup and re-use them.
This commit is contained in:
parent
c6e4ab442e
commit
3f137ae3b6
16 changed files with 514 additions and 81 deletions
|
@ -6,7 +6,7 @@ from nzbtomedia.nzbToMediaUtil import convert_to_ascii, joinPath
|
|||
from nzbtomedia import logger
|
||||
|
||||
class autoProcessComics:
|
||||
def processEpisode(self, dirName, nzbName=None, status=0, clientAgent='manual', inputCategory=None):
|
||||
def processEpisode(self, dirName, inputName=None, status=0, clientAgent='manual', inputCategory=None):
|
||||
# auto-detect correct section
|
||||
section = nzbtomedia.CFG.findsection(inputCategory)
|
||||
if not section:
|
||||
|
@ -34,15 +34,15 @@ class autoProcessComics:
|
|||
except:
|
||||
remote_path = None
|
||||
|
||||
nzbName, dirName = convert_to_ascii(nzbName, dirName)
|
||||
inputName, dirName = convert_to_ascii(inputName, dirName)
|
||||
|
||||
params = {}
|
||||
params['nzb_folder'] = dirName
|
||||
if remote_path:
|
||||
params['nzb_folder'] = joinPath(remote_path, os.path.basename(dirName))
|
||||
|
||||
if nzbName != None:
|
||||
params['nzb_name'] = nzbName
|
||||
if inputName != None:
|
||||
params['nzb_name'] = inputName
|
||||
|
||||
if ssl:
|
||||
protocol = "https://"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue