mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 19:12:40 +01:00
bytestringify path in file_filter
This commit is contained in:
parent
a1314b7bda
commit
4fbad7dd67
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ from __future__ import division, absolute_import, print_function
|
|||
|
||||
import re
|
||||
from beets import config
|
||||
from beets import util
|
||||
from beets.plugins import BeetsPlugin
|
||||
from beets.importer import SingletonImportTask
|
||||
|
||||
|
|
@ -69,6 +70,7 @@ class FileFilterPlugin(BeetsPlugin):
|
|||
of the file given in full_path.
|
||||
"""
|
||||
import_config = dict(config['import'])
|
||||
full_path = util.bytestring_path(full_path)
|
||||
if 'singletons' not in import_config or not import_config[
|
||||
'singletons']:
|
||||
# Album
|
||||
|
|
|
|||
Loading…
Reference in a new issue