mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
cleanup and a few fixes. #288
This commit is contained in:
parent
c74f9d08a9
commit
a9556dd7a0
5 changed files with 11 additions and 8 deletions
|
@ -21,7 +21,7 @@ import autoProcess.autoProcessMovie as autoProcessMovie
|
|||
import autoProcess.autoProcessTV as autoProcessTV
|
||||
from autoProcess.nzbToMediaEnv import *
|
||||
from autoProcess.nzbToMediaUtil import *
|
||||
from autoSickBeardFork import autoFork
|
||||
from autoProcess.autoSickBeardFork import autoFork
|
||||
from utorrent.client import UTorrentClient
|
||||
from transmissionrpc.client import Client as TransmissionClient
|
||||
from synchronousdeluge.client import DelugeClient
|
||||
|
@ -44,6 +44,8 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
|
||||
Logger.debug("MAIN: Determined Directory: %s | Name: %s | Category: %s", inputDirectory, inputName, inputCategory)
|
||||
|
||||
sbFork, sbParams = autoFork()
|
||||
|
||||
if inputCategory in sbCategory and sbFork in SICKBEARD_TORRENT and Torrent_ForceLink != 1:
|
||||
Logger.info("MAIN: Calling SickBeard's %s branch to post-process: %s",sbFork ,inputName)
|
||||
result = autoProcessTV.processEpisode(inputDirectory, inputName, int(0))
|
||||
|
@ -490,7 +492,6 @@ if __name__ == "__main__":
|
|||
|
||||
cpsCategory = (config.get("CouchPotato", "cpsCategory")).split(',') # movie
|
||||
sbCategory = (config.get("SickBeard", "sbCategory")).split(',') # tv
|
||||
sbFork, sbParams = autoFork(config.get("SickBeard", "fork")) # default
|
||||
Torrent_ForceLink = int(config.get("SickBeard", "Torrent_ForceLink")) # 1
|
||||
hpCategory = (config.get("HeadPhones", "hpCategory")).split(',') # music
|
||||
mlCategory = (config.get("Mylar", "mlCategory")).split(',') # comics
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue