diff --git a/autoProcessTV/autoProcessTV.py b/autoProcessTV/autoProcessTV.py index c784f374..d9c0244a 100644 --- a/autoProcessTV/autoProcessTV.py +++ b/autoProcessTV/autoProcessTV.py @@ -49,7 +49,7 @@ else: HTTPBasicAuthHandler = urllib2.HTTPBasicAuthHandler -def processEpisode(dir_to_process, org_NZB_name=None): +def processEpisode(dir_to_process, org_NZB_name=None, status=None): # Default values host = "localhost" port = "8081" @@ -117,6 +117,9 @@ def processEpisode(dir_to_process, org_NZB_name=None): if org_NZB_name != None: params['nzbName'] = org_NZB_name + if status != None: + params['failed'] = status + if ssl: protocol = "https://" else: