mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Merge pull request #289 from echel0n/dev
Fix to param setting code in autoProcessTV
This commit is contained in:
commit
719b4ed0ae
2 changed files with 12 additions and 6 deletions
|
@ -6,6 +6,7 @@ import logging
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
import socket
|
import socket
|
||||||
|
import copy
|
||||||
|
|
||||||
import Transcoder
|
import Transcoder
|
||||||
from nzbToMediaEnv import *
|
from nzbToMediaEnv import *
|
||||||
|
@ -153,13 +154,15 @@ def processEpisode(dirName, nzbName=None, failed=False, clientAgent=None, inputC
|
||||||
|
|
||||||
params['quiet'] = 1
|
params['quiet'] = 1
|
||||||
|
|
||||||
if hasattr(params, "failed"):
|
for param in copy.copy(params):
|
||||||
params['failed'] = failed
|
if param is "failed":
|
||||||
|
params["failed"] = failed
|
||||||
|
|
||||||
if hasattr(params, "dirName"):
|
if param is "dirName":
|
||||||
params['dirName'] = dirName
|
params["dirName"] = dirName
|
||||||
else:
|
|
||||||
params['dir'] = dirName
|
if param is "dir":
|
||||||
|
params["dir"] = dirName
|
||||||
|
|
||||||
if nzbName != None:
|
if nzbName != None:
|
||||||
params['nzbName'] = nzbName
|
params['nzbName'] = nzbName
|
||||||
|
|
|
@ -60,6 +60,9 @@ def migrate():
|
||||||
option = "sbCategory"
|
option = "sbCategory"
|
||||||
if option == "failed_fork": # change this old format
|
if option == "failed_fork": # change this old format
|
||||||
option = "fork"
|
option = "fork"
|
||||||
|
if value not in ["default", "failed", "failed-torrent", "auto"]:
|
||||||
|
value = "auto"
|
||||||
|
if option == "fork" and value not in ["default", "failed", "failed-torrent", "auto"]:
|
||||||
value = "auto"
|
value = "auto"
|
||||||
if option == "fork" and value in ["TPB", "TPB-failed", "Pistachitos"]: # Merge all these to "auto"
|
if option == "fork" and value in ["TPB", "TPB-failed", "Pistachitos"]: # Merge all these to "auto"
|
||||||
value = "auto"
|
value = "auto"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue