mirror of
https://github.com/beetbox/beets.git
synced 2026-02-03 22:12:27 +01:00
Merge pull request #4730 from elyang0214/master
Enforced utf-8 encoding on imported files
This commit is contained in:
commit
6955c53349
2 changed files with 3 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue