mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
parent
66edc921de
commit
8248c14887
6 changed files with 33 additions and 5 deletions
|
@ -202,6 +202,11 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
|
||||||
except (ConfigParser.NoOptionError, ValueError):
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
transcode = 0
|
transcode = 0
|
||||||
|
|
||||||
|
try:
|
||||||
|
remoteCPS = int(config.get("CouchPotato", "remoteCPS"))
|
||||||
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
|
remoteCPS = 0
|
||||||
|
|
||||||
nzbName = str(nzbName) # make sure it is a string
|
nzbName = str(nzbName) # make sure it is a string
|
||||||
|
|
||||||
imdbid = get_imdb(nzbName, dirName)
|
imdbid = get_imdb(nzbName, dirName)
|
||||||
|
@ -235,7 +240,10 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
|
||||||
else:
|
else:
|
||||||
command = "renamer.scan"
|
command = "renamer.scan"
|
||||||
if clientAgent != "manual" and download_id != "none":
|
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
|
url = baseURL + command
|
||||||
|
|
||||||
|
|
|
@ -231,8 +231,8 @@ def addnzbget():
|
||||||
confignew.read(configFilenamenew)
|
confignew.read(configFilenamenew)
|
||||||
|
|
||||||
section = "CouchPotato"
|
section = "CouchPotato"
|
||||||
envKeys = ['CATEGORY', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'DELAY', 'METHOD', 'DELETE_FAILED']
|
envKeys = ['CATEGORY', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'DELAY', 'METHOD', 'DELETE_FAILED', 'REMOTECPS']
|
||||||
cfgKeys = ['cpsCategory', 'apikey', 'host', 'port', 'ssl', 'web_root', 'delay', 'method', 'delete_failed']
|
cfgKeys = ['cpsCategory', 'apikey', 'host', 'port', 'ssl', 'web_root', 'delay', 'method', 'delete_failed', 'remoteCPS']
|
||||||
for index in range(len(envKeys)):
|
for index in range(len(envKeys)):
|
||||||
key = 'NZBPO_CPS' + envKeys[index]
|
key = 'NZBPO_CPS' + envKeys[index]
|
||||||
if os.environ.has_key(key):
|
if os.environ.has_key(key):
|
||||||
|
|
|
@ -15,6 +15,8 @@ delay = 65
|
||||||
method = renamer
|
method = renamer
|
||||||
delete_failed = 0
|
delete_failed = 0
|
||||||
wait_for = 2
|
wait_for = 2
|
||||||
|
#### Set to 1 if CouchPotatoServer is running on a different server to your NZB client
|
||||||
|
remoteCPS = 0
|
||||||
|
|
||||||
|
|
||||||
[SickBeard]
|
[SickBeard]
|
||||||
|
|
|
@ -1,10 +1,18 @@
|
||||||
Change_LOG / History
|
Change_LOG / History
|
||||||
|
|
||||||
VX.X XX/XX/2013
|
V8.3 11/07/2013
|
||||||
|
|
||||||
Impacts All
|
Impacts All
|
||||||
Allow use of experimental AAC codec in transcoder.
|
Allow use of experimental AAC codec in transcoder.
|
||||||
Remove username and password when api key is used.
|
Remove username and password when api key is used.
|
||||||
|
Add .m4v as media
|
||||||
|
Added ResetDateTime.py
|
||||||
|
Manual Opion for Mylar script.
|
||||||
|
Fixes for Gamez script.
|
||||||
|
|
||||||
|
Impacts NZBs
|
||||||
|
Added option to remove folder path when CouchPotato on different system to downlaoder.
|
||||||
|
NZBGet v11.0 stable now current.
|
||||||
|
|
||||||
|
|
||||||
V8.2 26/05/2013
|
V8.2 26/05/2013
|
||||||
|
|
|
@ -53,6 +53,11 @@
|
||||||
# set to 1 to delete failed, or 0 to leave files in place.
|
# set to 1 to delete failed, or 0 to leave files in place.
|
||||||
#cpsdelete_failed=0
|
#cpsdelete_failed=0
|
||||||
|
|
||||||
|
# CouchPotatoServer and NZBGet are on same system (0, 1).
|
||||||
|
#
|
||||||
|
# set to 1 if CouchPotato and NZBGet are on the same system, or 0 if on teh same system.
|
||||||
|
#remoteCPS = 0
|
||||||
|
|
||||||
## Extensions
|
## Extensions
|
||||||
|
|
||||||
# Media Extensions
|
# Media Extensions
|
||||||
|
|
|
@ -53,6 +53,11 @@
|
||||||
# set to 1 to delete failed, or 0 to leave files in place.
|
# set to 1 to delete failed, or 0 to leave files in place.
|
||||||
#cpsdelete_failed=0
|
#cpsdelete_failed=0
|
||||||
|
|
||||||
|
# CouchPotatoServer and NZBGet are on same system (0, 1).
|
||||||
|
#
|
||||||
|
# set to 1 if CouchPotato and NZBGet are on the same system, or 0 if on teh same system.
|
||||||
|
#remoteCPS = 0
|
||||||
|
|
||||||
## SickBeard
|
## SickBeard
|
||||||
|
|
||||||
# SickBeard script category.
|
# SickBeard script category.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue