Update beets/importer/tasks.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
gaotue 2026-03-23 14:43:28 +01:00 committed by GitHub
parent cccc1fd513
commit d5f64fdba8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1094,7 +1094,7 @@ class ImportTaskFactory:
)
def check_extension(self, path: util.PathBytes):
path = Path(path.decode("utf-8"))
path = Path(os.fsdecode(path))
# if there is an extension, ignore
if path.suffix != "":
return path