mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
Refactor deluge configuration
This commit is contained in:
parent
44df360fbe
commit
22dfadd65c
1 changed files with 13 additions and 9 deletions
|
@ -445,6 +445,18 @@ def configure_transmission():
|
||||||
TRANSMISSION_PASSWORD = CFG['Torrent']['TransmissionPWD'] # mysecretpwr
|
TRANSMISSION_PASSWORD = CFG['Torrent']['TransmissionPWD'] # mysecretpwr
|
||||||
|
|
||||||
|
|
||||||
|
def configure_deluge():
|
||||||
|
global DELUGE_HOST
|
||||||
|
global DELUGE_PORT
|
||||||
|
global DELUGE_USER
|
||||||
|
global DELUGE_PASSWORD
|
||||||
|
|
||||||
|
DELUGE_HOST = CFG['Torrent']['DelugeHost'] # localhost
|
||||||
|
DELUGE_PORT = int(CFG['Torrent']['DelugePort']) # 8084
|
||||||
|
DELUGE_USER = CFG['Torrent']['DelugeUSR'] # mysecretusr
|
||||||
|
DELUGE_PASSWORD = CFG['Torrent']['DelugePWD'] # mysecretpwr
|
||||||
|
|
||||||
|
|
||||||
def configure_torrents():
|
def configure_torrents():
|
||||||
global TORRENT_CLIENT_AGENT
|
global TORRENT_CLIENT_AGENT
|
||||||
global USE_LINK
|
global USE_LINK
|
||||||
|
@ -456,10 +468,6 @@ def configure_torrents():
|
||||||
global TORRENT_CHMOD_DIRECTORY
|
global TORRENT_CHMOD_DIRECTORY
|
||||||
global TORRENT_RESUME_ON_FAILURE
|
global TORRENT_RESUME_ON_FAILURE
|
||||||
global TORRENT_RESUME
|
global TORRENT_RESUME
|
||||||
global DELUGE_HOST
|
|
||||||
global DELUGE_PORT
|
|
||||||
global DELUGE_USER
|
|
||||||
global DELUGE_PASSWORD
|
|
||||||
global QBITTORRENT_HOST
|
global QBITTORRENT_HOST
|
||||||
global QBITTORRENT_PORT
|
global QBITTORRENT_PORT
|
||||||
global QBITTORRENT_USER
|
global QBITTORRENT_USER
|
||||||
|
@ -482,11 +490,7 @@ def configure_torrents():
|
||||||
|
|
||||||
configure_utorrent()
|
configure_utorrent()
|
||||||
configure_transmission()
|
configure_transmission()
|
||||||
|
configure_deluge()
|
||||||
DELUGE_HOST = CFG['Torrent']['DelugeHost'] # localhost
|
|
||||||
DELUGE_PORT = int(CFG['Torrent']['DelugePort']) # 8084
|
|
||||||
DELUGE_USER = CFG['Torrent']['DelugeUSR'] # mysecretusr
|
|
||||||
DELUGE_PASSWORD = CFG['Torrent']['DelugePWD'] # mysecretpwr
|
|
||||||
|
|
||||||
QBITTORRENT_HOST = CFG['Torrent']['qBittorrenHost'] # localhost
|
QBITTORRENT_HOST = CFG['Torrent']['qBittorrenHost'] # localhost
|
||||||
QBITTORRENT_PORT = int(CFG['Torrent']['qBittorrentPort']) # 8080
|
QBITTORRENT_PORT = int(CFG['Torrent']['qBittorrentPort']) # 8080
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue