forked from stealthgyro/radarrAnnounced
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
36 lines (27 loc) · 872 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import profig
cfg = profig.Config('settings.cfg')
def init():
global cfg
# Settings
cfg.init('server.host', 'localhost')
cfg.init('server.port', '3468')
cfg.init('server.user', 'admin')
cfg.init('server.pass', 'password')
cfg.init('radarr.apikey', '')
cfg.init('radarr.url', 'http://localhost:7878')
cfg.init('bot.debug_file', True)
cfg.init('bot.debug_console', True)
# Trackers
cfg.init('iptorrents.nick', '')
cfg.init('iptorrents.nick_pass', '')
cfg.init('iptorrents.auth_key', '')
cfg.init('iptorrents.torrent_pass', '')
cfg.init('ptp.nick', '')
cfg.init('ptp.site_username', '')
cfg.init('ptp.nick_pass', '')
cfg.init('ptp.auth_key', '')
cfg.init('ptp.torrent_pass', '')
cfg.init('ptp.irc_key', '')
cfg.init('ptp.announcer', 'Hummingbird')
cfg.sync()
return cfg