forked from rembo10/headphones
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigcreate.py
More file actions
40 lines (38 loc) · 1.34 KB
/
configcreate.py
File metadata and controls
40 lines (38 loc) · 1.34 KB
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
37
38
39
40
from configobj import ConfigObj
def configCreate(path):
config = ConfigObj()
config.filename = path
config['General'] = {}
config['General']['http_host'] = '0.0.0.0'
config['General']['http_port'] = 8181
config['General']['http_username'] = ''
config['General']['http_password'] = ''
config['General']['launch_browser'] = 1
config['General']['include_lossless'] = 0
config['General']['flac_to_mp3'] = 0
config['General']['move_to_itunes'] = 0
config['General']['path_to_itunes'] = ''
config['General']['rename_mp3s'] = 0
config['General']['cleanup'] = 0
config['General']['add_album_art'] = 0
config['General']['music_download_dir'] = ''
config['General']['usenet_retention'] = 500
config['SABnzbd'] = {}
config['SABnzbd']['sab_host'] = ''
config['SABnzbd']['sab_username'] = ''
config['SABnzbd']['sab_password'] = ''
config['SABnzbd']['sab_apikey'] = ''
config['SABnzbd']['sab_category'] = ''
config['NZBMatrix'] = {}
config['NZBMatrix']['nzbmatrix'] = 0
config['NZBMatrix']['nzbmatrix_username'] = ''
config['NZBMatrix']['nzbmatrix_apikey'] = ''
config['Newznab'] = {}
config['Newznab']['newznab'] = 0
config['Newznab']['newznab_host'] = ''
config['Newznab']['newznab_apikey'] = ''
config['NZBsorg'] = {}
config['NZBsorg']['nzbsorg'] = 0
config['NZBsorg']['nzbsorg_uid'] = ''
config['NZBsorg']['nzbsorg_hash'] = ''
config.write()