mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
dded flow and config for Lidarr handling. #1350
This commit is contained in:
parent
b5ee0c241c
commit
9baef39f99
6 changed files with 454 additions and 8 deletions
|
@ -273,6 +273,49 @@
|
|||
# Enable to replace local path with the path as per the mountPoints below.
|
||||
#hpremote_path=0
|
||||
|
||||
## Lidarr
|
||||
|
||||
# Lidarr script category.
|
||||
#
|
||||
# category that gets called for post-processing with NzbDrone.
|
||||
#liCategory=music2
|
||||
|
||||
# Lidarr host.
|
||||
#
|
||||
# The ipaddress for your Lidarr server. e.g For the Same system use localhost or 127.0.0.1
|
||||
#lihost=localhost
|
||||
|
||||
# Lidarr port.
|
||||
#liport=8686
|
||||
|
||||
# Lidarr API key.
|
||||
#liapikey=
|
||||
|
||||
# Lidarr uses ssl (0, 1).
|
||||
#
|
||||
# Set to 1 if using ssl, else set to 0.
|
||||
#lissl=0
|
||||
|
||||
# Lidarr web_root
|
||||
#
|
||||
# set this if using a reverse proxy.
|
||||
#liweb_root=
|
||||
|
||||
# Lidarr wait_for
|
||||
#
|
||||
# Set the number of minutes to wait after calling the renamer, to check the episode has changed status.
|
||||
#liwait_for=6
|
||||
|
||||
# Lidarr Delete Failed Downloads (0, 1).
|
||||
#
|
||||
# set to 1 to delete failed, or 0 to leave files in place.
|
||||
#lidelete_failed=0
|
||||
|
||||
# Lidarr and NZBGet are a different system (0, 1).
|
||||
#
|
||||
# Enable to replace local path with the path as per the mountPoints below.
|
||||
#liremote_path=0
|
||||
|
||||
## Mylar
|
||||
|
||||
# Mylar script category.
|
||||
|
@ -672,7 +715,7 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
|
|||
elif sectionName in ["SickBeard", "NzbDrone", "Sonarr"]:
|
||||
result = autoProcessTV().processEpisode(sectionName, inputDirectory, inputName, status, clientAgent,
|
||||
download_id, inputCategory, failureLink)
|
||||
elif sectionName == "HeadPhones":
|
||||
elif sectionName in ["HeadPhones", "Lidarr"]:
|
||||
result = autoProcessMusic().process(sectionName, inputDirectory, inputName, status, clientAgent, inputCategory)
|
||||
elif sectionName == "Mylar":
|
||||
result = autoProcessComics().processEpisode(sectionName, inputDirectory, inputName, status, clientAgent,
|
||||
|
@ -690,7 +733,7 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
|
|||
if clientAgent != 'manual':
|
||||
# update download status in our DB
|
||||
update_downloadInfoStatus(inputName, 1)
|
||||
if sectionName not in ['UserScript', 'NzbDrone', 'Sonarr', 'Radarr']:
|
||||
if sectionName not in ['UserScript', 'NzbDrone', 'Sonarr', 'Radarr', 'Lidarr']:
|
||||
# cleanup our processing folders of any misc unwanted files and empty directories
|
||||
cleanDir(inputDirectory, sectionName, inputCategory)
|
||||
|
||||
|
@ -763,6 +806,8 @@ def main(args, section=None):
|
|||
download_id = os.environ['NZBPR_SONARR']
|
||||
elif 'NZBPR_RADARR' in os.environ:
|
||||
download_id = os.environ['NZBPR_RADARR']
|
||||
elif 'NZBPR_LIDARR' in os.environ:
|
||||
download_id = os.environ['NZBPR_LIDARR']
|
||||
if 'NZBPR__DNZB_FAILURE' in os.environ:
|
||||
failureLink = os.environ['NZBPR__DNZB_FAILURE']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue