diff --git a/README.md b/README.md index be34a243..ff1a9780 100644 --- a/README.md +++ b/README.md @@ -244,9 +244,9 @@ path_filter_fat = True ; replace FAT file system unsafe characters in filename path_filter_special = False ; replace special characters in filenames with _ [musicbrainz] -server = http://musicbrainz.org:80 ; use MusicBrainz server at host[:port] -# use https as scheme if connecting to a https server. Example below: -# server = https://example.com:1234 +server = https://musicbrainz.org ; use MusicBrainz server at host[:port] +# use http as scheme if connecting to a plain http server. Example below: +# server = http://example.com:8080 [drive:HL-20] defeats_cache = True ; whether the drive is capable of defeating the audio cache diff --git a/whipper/command/main.py b/whipper/command/main.py index 6c27fbb5..0b986920 100644 --- a/whipper/command/main.py +++ b/whipper/command/main.py @@ -20,7 +20,7 @@ def main(): server = config.Config().get_musicbrainz_server() - https_enabled = True if server['scheme'] == 'https' else False + https_enabled = server['scheme'] == 'https' try: musicbrainzngs.set_hostname(server['netloc'], https_enabled) # Parameter 'use_https' is missing in versions of musicbrainzngs < 0.7