Enable connecting to a custom MusicBrainz server

Under the new [musicbrainz] section in the config,
you can set a server to connect to.

Closes #172.
This commit is contained in:
Eshan Singh
2017-12-30 10:55:52 +00:00
parent 75a3d4bce1
commit e2e8676e4d
4 changed files with 16 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ import urlparse
import whipper
from whipper.common import common
from whipper.common import common, config
import logging
logger = logging.getLogger(__name__)
@@ -390,7 +390,7 @@ class Table(object):
return result
def getMusicBrainzSubmitURL(self):
host = 'musicbrainz.org'
host = config.Config().get_musicbrainz_server()
discid = self.getMusicBrainzDiscId()
values = self._getMusicBrainzValues()