mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
fix params for TPB branch. fix #187
This commit is contained in:
parent
8e0e3de851
commit
b7e3a71388
1 changed files with 6 additions and 5 deletions
|
@ -112,7 +112,6 @@ def processEpisode(dirName, nzbName=None, failed=False):
|
|||
except (ConfigParser.NoOptionError, ValueError):
|
||||
delay = 0
|
||||
|
||||
|
||||
mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',')
|
||||
minSampleSize = int(config.get("Extensions", "minSampleSize"))
|
||||
|
||||
|
@ -159,14 +158,16 @@ def processEpisode(dirName, nzbName=None, failed=False):
|
|||
|
||||
# if you have specified you are using development branch from fork https://github.com/Tolstyak/Sick-Beard.git
|
||||
if fork == "TPB":
|
||||
params['dirName'] = dirName
|
||||
params['dir'] = dirName
|
||||
if nzbName != None:
|
||||
params['nzbName'] = nzbName
|
||||
params['failed'] = failed
|
||||
if status == 0:
|
||||
Logger.info("The download succeeded. Sending process request to SickBeard's failed branch")
|
||||
Logger.info("The download succeeded. Sending process request to SickBeard's TPB branch")
|
||||
else:
|
||||
Logger.info("The download failed. Sending 'failed' process request to SickBeard's failed branch")
|
||||
Logger.info("The download failed. Nothing to process")
|
||||
if delete_failed and os.path.isdir(dirName) and not dirName in ['sys.argv[0]','/','']:
|
||||
delete(dirName)
|
||||
return 0 # Success (as far as this script is concerned)
|
||||
|
||||
# this is our default behaviour to work with the standard Master branch of SickBeard
|
||||
elif fork == "default":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue