mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-15 16:19:28 +01:00
Added official-ish headphones mirror for musicbrainz - new installs will use it as default, but if you're updating, you can change it in settings
This commit is contained in:
@@ -134,7 +134,7 @@ PROWL_ENABLED = True
|
||||
PROWL_PRIORITY = 1
|
||||
PROWL_KEYS = None
|
||||
PROWL_ONSNATCH = True
|
||||
MIRRORLIST = ["musicbrainz.org","tbueter.com","localhost"]
|
||||
MIRRORLIST = ["musicbrainz.org","headphones","tbueter.com","localhost"]
|
||||
MIRROR = None
|
||||
|
||||
def CheckSection(sec):
|
||||
@@ -303,7 +303,7 @@ def initialize():
|
||||
PROWL_ONSNATCH = bool(check_setting_int(CFG, 'Prowl', 'prowl_onsnatch', 0))
|
||||
PROWL_PRIORITY = check_setting_int(CFG, 'Prowl', 'prowl_priority', 0)
|
||||
|
||||
MIRROR = check_setting_str(CFG, 'General', 'mirror', 'tbueter.com')
|
||||
MIRROR = check_setting_str(CFG, 'General', 'mirror', 'headphones')
|
||||
|
||||
if not LOG_DIR:
|
||||
LOG_DIR = os.path.join(DATA_DIR, 'logs')
|
||||
|
||||
@@ -24,6 +24,10 @@ def startmb():
|
||||
mbhost = "localhost"
|
||||
mbport = 7143
|
||||
sleepytime = 0
|
||||
elif headphones.MIRROR == "headphones":
|
||||
mbhost = "178.63.142.150"
|
||||
mbport = 5000
|
||||
sleepytime = 0
|
||||
elif headphones.MIRROR == "tbueter.com":
|
||||
mbhost = "tbueter.com"
|
||||
mbport = 3000
|
||||
|
||||
Reference in New Issue
Block a user