mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 04:49:31 -07:00
Refactor qbittorrent configuration
This commit is contained in:
parent
22dfadd65c
commit
9c105061d6
1 changed files with 13 additions and 9 deletions
|
@ -457,6 +457,18 @@ def configure_deluge():
|
||||||
DELUGE_PASSWORD = CFG['Torrent']['DelugePWD'] # mysecretpwr
|
DELUGE_PASSWORD = CFG['Torrent']['DelugePWD'] # mysecretpwr
|
||||||
|
|
||||||
|
|
||||||
|
def configure_qbittorrent():
|
||||||
|
global QBITTORRENT_HOST
|
||||||
|
global QBITTORRENT_PORT
|
||||||
|
global QBITTORRENT_USER
|
||||||
|
global QBITTORRENT_PASSWORD
|
||||||
|
|
||||||
|
QBITTORRENT_HOST = CFG['Torrent']['qBittorrenHost'] # localhost
|
||||||
|
QBITTORRENT_PORT = int(CFG['Torrent']['qBittorrentPort']) # 8080
|
||||||
|
QBITTORRENT_USER = CFG['Torrent']['qBittorrentUSR'] # mysecretusr
|
||||||
|
QBITTORRENT_PASSWORD = CFG['Torrent']['qBittorrentPWD'] # mysecretpwr
|
||||||
|
|
||||||
|
|
||||||
def configure_torrents():
|
def configure_torrents():
|
||||||
global TORRENT_CLIENT_AGENT
|
global TORRENT_CLIENT_AGENT
|
||||||
global USE_LINK
|
global USE_LINK
|
||||||
|
@ -468,10 +480,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 QBITTORRENT_HOST
|
|
||||||
global QBITTORRENT_PORT
|
|
||||||
global QBITTORRENT_USER
|
|
||||||
global QBITTORRENT_PASSWORD
|
|
||||||
|
|
||||||
TORRENT_CLIENT_AGENT = CFG['Torrent']['clientAgent'] # utorrent | deluge | transmission | rtorrent | vuze | qbittorrent |other
|
TORRENT_CLIENT_AGENT = CFG['Torrent']['clientAgent'] # utorrent | deluge | transmission | rtorrent | vuze | qbittorrent |other
|
||||||
USE_LINK = CFG['Torrent']['useLink'] # no | hard | sym
|
USE_LINK = CFG['Torrent']['useLink'] # no | hard | sym
|
||||||
|
@ -491,11 +499,7 @@ def configure_torrents():
|
||||||
configure_utorrent()
|
configure_utorrent()
|
||||||
configure_transmission()
|
configure_transmission()
|
||||||
configure_deluge()
|
configure_deluge()
|
||||||
|
configure_qbittorrent()
|
||||||
QBITTORRENT_HOST = CFG['Torrent']['qBittorrenHost'] # localhost
|
|
||||||
QBITTORRENT_PORT = int(CFG['Torrent']['qBittorrentPort']) # 8080
|
|
||||||
QBITTORRENT_USER = CFG['Torrent']['qBittorrentUSR'] # mysecretusr
|
|
||||||
QBITTORRENT_PASSWORD = CFG['Torrent']['qBittorrentPWD'] # mysecretpwr
|
|
||||||
|
|
||||||
|
|
||||||
def configure_remote_paths():
|
def configure_remote_paths():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue