mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-21 16:25:35 +02:00
final
This commit is contained in:
@@ -117,6 +117,11 @@ READARR_URL = get_config_value('READARR_URL',
|
||||
READARR_KEY = None if READARR_URL == None else \
|
||||
get_config_value('READARR_KEY', 'readarr', True, str)
|
||||
|
||||
# Whisparr
|
||||
WHISPARR_URL = get_config_value('WHISPARR_URL', 'whisparr', False, str)
|
||||
WHISPARR_KEY = None if WHISPARR_URL == None else \
|
||||
get_config_value('WHISPARR_KEY', 'whisparr', True, str)
|
||||
|
||||
# qBittorrent
|
||||
QBITTORRENT_URL = get_config_value('QBITTORRENT_URL', 'qbittorrent', False, str, '')
|
||||
QBITTORRENT_USERNAME = get_config_value('QBITTORRENT_USERNAME', 'qbittorrent', False, str, '')
|
||||
@@ -124,8 +129,8 @@ QBITTORRENT_PASSWORD = get_config_value('QBITTORRENT_PASSWORD',
|
||||
|
||||
########################################################################################################################
|
||||
########### Validate settings
|
||||
if not (RADARR_URL or SONARR_URL or LIDARR_URL or READARR_URL):
|
||||
print(f'[ ERROR ]: No Radarr/Sonarr/Lidarr/Readarr URLs specified (nothing to monitor)')
|
||||
if not (RADARR_URL or SONARR_URL or LIDARR_URL or READARR_URL or WHISPARR_URL):
|
||||
print(f'[ ERROR ]: No Radarr/Sonarr/Lidarr/Readarr/Whisparr URLs specified (nothing to monitor)')
|
||||
sys.exit(0)
|
||||
|
||||
########### Enrich setting variables
|
||||
@@ -133,6 +138,7 @@ if RADARR_URL: RADARR_URL += '/api/v3'
|
||||
if SONARR_URL: SONARR_URL += '/api/v3'
|
||||
if LIDARR_URL: LIDARR_URL += '/api/v1'
|
||||
if READARR_URL: READARR_URL += '/api/v1'
|
||||
if WHISPARR_URL: WHISPARR_URL += '/api/v3'
|
||||
if QBITTORRENT_URL: QBITTORRENT_URL += '/api/v2'
|
||||
|
||||
########### Add Variables to Dictionary
|
||||
|
||||
Reference in New Issue
Block a user