mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -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
|
@ -4,7 +4,7 @@ from nzbtomedia.nzbToMediaUtil import convert_to_ascii
|
|||
from nzbtomedia import logger
|
||||
|
||||
class autoProcessGames:
|
||||
def process(self, dirName, nzbName=None, status=0, clientAgent='manual', inputCategory=None):
|
||||
def process(self, dirName, inputName=None, status=0, clientAgent='manual', inputCategory=None):
|
||||
if dirName is None:
|
||||
logger.error("No directory was given!")
|
||||
return 1 # failure
|
||||
|
@ -37,11 +37,11 @@ class autoProcessGames:
|
|||
else:
|
||||
protocol = "http://"
|
||||
|
||||
nzbName, dirName = convert_to_ascii(nzbName, dirName)
|
||||
inputName, dirName = convert_to_ascii(inputName, dirName)
|
||||
|
||||
url = "%s%s:%s%s/api" % (protocol, host, port, web_root)
|
||||
|
||||
fields = nzbName.split("-")
|
||||
fields = inputName.split("-")
|
||||
|
||||
gamezID = fields[0].replace("[","").replace("]","").replace(" ","")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue