Use https and http appropriately when connecting to MusicBrainz
Fixed some bugs: - MusicBrainz submit URL always has https as protocol: hardcoded, even when inappropriate. It's just a graphical issue. - Whipper appears to always communicate with MusicBrainz using musicbrainzngs over http. The musicbrainzngs.set_hostname(server). - `musicbrainzngs.set_hostname(server)` always defaults to http. Since musicbrainzngs version 0.7 the method `set_hostname` takes an optional argument named `use_https` (defaults to False) which whipper never passes. Changed behaviour of `server` option (`musicbrainz` section of whipper's configuration file). Now it expects an URL with a valid scheme (scheme must be `http` or `http`, empty scheme isn't allowed anymore). Only the scheme and netloc parts of the URL are taken into account. Fixes #437. Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
12
README.md
12
README.md
@@ -240,15 +240,17 @@ options:
|
||||
|
||||
```INI
|
||||
[main]
|
||||
path_filter_fat = True ; replace FAT file system unsafe characters in filenames with _
|
||||
path_filter_special = False ; replace special characters in filenames with _
|
||||
path_filter_fat = True ; replace FAT file system unsafe characters in filenames with _
|
||||
path_filter_special = False ; replace special characters in filenames with _
|
||||
|
||||
[musicbrainz]
|
||||
server = musicbrainz.org:80 ; use MusicBrainz server at host[:port]
|
||||
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
|
||||
read_offset = 6 ; drive read offset in positive/negative frames (no leading +)
|
||||
defeats_cache = True ; whether the drive is capable of defeating the audio cache
|
||||
read_offset = 6 ; drive read offset in positive/negative frames (no leading +)
|
||||
# do not edit the values 'vendor', 'model', and 'release'; they are used by whipper to match the drive
|
||||
|
||||
# command line defaults for `whipper cd rip`
|
||||
|
||||
Reference in New Issue
Block a user