From d5f64fdba88c640ff1b92492fc5ed7ee6d551337 Mon Sep 17 00:00:00 2001 From: gaotue Date: Mon, 23 Mar 2026 14:43:28 +0100 Subject: [PATCH] Update beets/importer/tasks.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- beets/importer/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/importer/tasks.py b/beets/importer/tasks.py index 356e6b5fc..43312e943 100644 --- a/beets/importer/tasks.py +++ b/beets/importer/tasks.py @@ -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