mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 04:49:31 -07:00
my bad :)
This commit is contained in:
parent
9fa6a86f1a
commit
51a0366906
2 changed files with 13 additions and 5 deletions
|
@ -139,10 +139,10 @@ def main(inputDirectory, inputName, inputCategory, inputHash)
|
||||||
##### quick 'n dirt hardlink solution for uTorrent, need to implent support for deluge, transmission
|
##### quick 'n dirt hardlink solution for uTorrent, need to implent support for deluge, transmission
|
||||||
|
|
||||||
# Now we pass off to CouchPotato or Sick-Beard
|
# Now we pass off to CouchPotato or Sick-Beard
|
||||||
if inputCategory == movieCategory:
|
if inputCategory == cpsCategory:
|
||||||
Logger.info("MAIN: Calling CouchPotatoServer to post-process: %s", inputName) # can we use logger while logfile open?
|
Logger.info("MAIN: Calling CouchPotatoServer to post-process: %s", inputName) # can we use logger while logfile open?
|
||||||
autoProcessMovie.process(outputDestination, inputName, status)
|
autoProcessMovie.process(outputDestination, inputName, status)
|
||||||
elif inputCategory == tvCategory:
|
elif inputCategory == sbCategory:
|
||||||
Logger.info("MAIN: Calling Sick-Beard to post-process: %s", inputName) # can we use logger while logfile open?
|
Logger.info("MAIN: Calling Sick-Beard to post-process: %s", inputName) # can we use logger while logfile open?
|
||||||
autoProcessTV.processEpisode(outputDestination, inputName, status)
|
autoProcessTV.processEpisode(outputDestination, inputName, status)
|
||||||
|
|
||||||
|
@ -196,6 +196,10 @@ if __name__ == "__main__":
|
||||||
compressedContainer = (config.get("Torrent", "compressedExtentions")).split(',') # .zip,.rar,.7z
|
compressedContainer = (config.get("Torrent", "compressedExtentions")).split(',') # .zip,.rar,.7z
|
||||||
mediaContainer = (config.get("Torrent", "mediaExtentions")).split(',') # .mkv,.avi,.divx
|
mediaContainer = (config.get("Torrent", "mediaExtentions")).split(',') # .mkv,.avi,.divx
|
||||||
metaContainer = (config.get("Torrent", "metaExtentions")).split(',') # .nfo,.sub,.srt
|
metaContainer = (config.get("Torrent", "metaExtentions")).split(',') # .nfo,.sub,.srt
|
||||||
|
|
||||||
|
cpsCategory = config.get("CouchPotato", "cpsCategory") # movie
|
||||||
|
sbCategory = config.get("SickBeard", "tvCategory") # tv
|
||||||
|
categories.append(cpsCategory, sbCategory)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
inputDirectory, inputName, inputCategory, inputHash = parse_args(clientAgent)
|
inputDirectory, inputName, inputCategory, inputHash = parse_args(clientAgent)
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
[CouchPotato]
|
[CouchPotato]
|
||||||
|
#### cpsCategory - category that gets called for post-processing with CPS
|
||||||
|
cpsCategory = movie
|
||||||
apikey =
|
apikey =
|
||||||
host = localhost
|
host = localhost
|
||||||
port = 5050
|
port = 5050
|
||||||
|
@ -13,6 +15,8 @@ delete_failed = 0
|
||||||
|
|
||||||
|
|
||||||
[SickBeard]
|
[SickBeard]
|
||||||
|
#### sbCategory - category that gets called for post-processing with CPS
|
||||||
|
sbCategory = tv
|
||||||
host=localhost
|
host=localhost
|
||||||
port=8081
|
port=8081
|
||||||
username=
|
username=
|
||||||
|
@ -23,9 +27,9 @@ ssl=0
|
||||||
watch_dir=
|
watch_dir=
|
||||||
failed_fork=0
|
failed_fork=0
|
||||||
|
|
||||||
|
|
||||||
[Torrent]
|
[Torrent]
|
||||||
###### Set to whatever torrent client you use.
|
###### clientAgent - Supported clients: utorrent, transmission, deluge, other
|
||||||
###### Supported values: utorrent, transmission, deluge, other
|
|
||||||
clientAgent = other
|
clientAgent = other
|
||||||
###### useLink - Set to true or false depending on if you want to use hardlinks
|
###### useLink - Set to true or false depending on if you want to use hardlinks
|
||||||
useLink = false
|
useLink = false
|
||||||
|
@ -34,7 +38,7 @@ minSampleSize = 200
|
||||||
###### outputDirectory - Default output directory (categories will be appended as sub directory to outputDirectory)
|
###### outputDirectory - Default output directory (categories will be appended as sub directory to outputDirectory)
|
||||||
outputDirectory = /abs/path/to/complete/
|
outputDirectory = /abs/path/to/complete/
|
||||||
###### **insert descriptive comment for categories here** :-)
|
###### **insert descriptive comment for categories here** :-)
|
||||||
categories = movie,tv,music,music_videos,pictures,software
|
categories = music,music_videos,pictures,software
|
||||||
###### uTorrent Hardlink solution (You must edit this if your using TorrentToMedia.py with uTorrent)
|
###### uTorrent Hardlink solution (You must edit this if your using TorrentToMedia.py with uTorrent)
|
||||||
uTorrentWEBui = http://localhost:8090/gui/
|
uTorrentWEBui = http://localhost:8090/gui/
|
||||||
uTorrentUSR = your username
|
uTorrentUSR = your username
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue