mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Remove movie folder location from CP renamer params if CP server is running on a different server than the NZB CLient. #162
This commit is contained in:
parent
59a9cb245e
commit
a8d65c55a2
2 changed files with 11 additions and 1 deletions
|
@ -222,6 +222,11 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
|
|||
except (ConfigParser.NoOptionError, ValueError):
|
||||
transcode = 0
|
||||
|
||||
try:
|
||||
remoteCPS = int(config.get("CouchPotato", "remoteCPS"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
remoteCPS = 0
|
||||
|
||||
myOpener = AuthURLOpener(username, password)
|
||||
|
||||
nzbName = str(nzbName) # make sure it is a string
|
||||
|
@ -257,7 +262,10 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
|
|||
else:
|
||||
command = "renamer.scan"
|
||||
if clientAgent != "manual" and download_id != "none":
|
||||
command = command + "/?movie_folder=" + dirName + "&downloader=" + clientAgent + "&download_id=" + download_id
|
||||
if remoteCPS == 1:
|
||||
command = command + "/?downloader=" + clientAgent + "&download_id=" + download_id
|
||||
else:
|
||||
command = command + "/?movie_folder=" + dirName + "&downloader=" + clientAgent + "&download_id=" + download_id
|
||||
|
||||
url = baseURL + command
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@ delay = 65
|
|||
method = renamer
|
||||
delete_failed = 0
|
||||
wait_for = 2
|
||||
#### Set to 1 if CouchPotatoServer is running on a different server to your NZB client
|
||||
remoteCPS = 0
|
||||
|
||||
|
||||
[SickBeard]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue