From f8c444bc0a2b05a96e2ef0eb728417354e907da6 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 8 Apr 2013 05:12:15 -0400 Subject: [PATCH] Updated mb.py & musicbrainzngs lib to point to the new server --- headphones/mb.py | 2 +- lib/musicbrainzngs/musicbrainz.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/mb.py b/headphones/mb.py index 5a20e0ad..e693c322 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -44,7 +44,7 @@ def startmb(): mbport = int(headphones.CUSTOMPORT) sleepytime = int(headphones.CUSTOMSLEEP) elif headphones.MIRROR == "headphones": - mbhost = "178.63.142.150" + mbhost = "192.30.34.130" mbport = 8181 mbuser = headphones.HPUSER mbpass = headphones.HPPASS diff --git a/lib/musicbrainzngs/musicbrainz.py b/lib/musicbrainzngs/musicbrainz.py index e16c0816..0dcdaf2a 100644 --- a/lib/musicbrainzngs/musicbrainz.py +++ b/lib/musicbrainzngs/musicbrainz.py @@ -497,7 +497,7 @@ def _mb_request(path, method='GET', auth_required=False, client_required=False, req.add_header('User-Agent', _useragent) # Add headphones credentials - if hostname == '178.63.142.150:8181': + if hostname == '192.30.34.130:8181': base64string = base64.encodestring('%s:%s' % (hpuser, hppassword)).replace('\n', '') req.add_header("Authorization", "Basic %s" % base64string)