Merge pull request #4730 from elyang0214/master

Enforced utf-8 encoding on imported files
This commit is contained in:
Adrian Sampson 2023-04-07 12:19:19 -07:00 committed by GitHub
commit 6955c53349
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -958,7 +958,7 @@ def import_files(lib, paths, query):
if config['import']['log'].get() is not None:
logpath = syspath(config['import']['log'].as_filename())
try:
loghandler = logging.FileHandler(logpath)
loghandler = logging.FileHandler(logpath, encoding='utf-8')
except OSError:
raise ui.UserError("could not open log file for writing: "
"{}".format(displayable_path(logpath)))

View file

@ -11,6 +11,8 @@ for Python 3.6).
New features:
* --from-logfile now parses log files using a UTF-8 encoding in `beets/beets/ui/commands.py`.
:bug:`4693`
* Added additional error handling for `spotify` plugin.
:bug:`4686`
* We now import the remixer field from Musicbrainz into the library.