From cf1b4d8913d256cf2e43e17730109516fd10b7b6 Mon Sep 17 00:00:00 2001 From: Sebastian Mohr Date: Mon, 17 Feb 2025 16:25:41 +0100 Subject: [PATCH] See https://github.com/beetbox/beets/pull/5611#discussion_r1958356845. Revert normpath additions --- beets/importer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beets/importer.py b/beets/importer.py index 4d796982f..3553e1ea0 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -436,7 +436,7 @@ class ImportSession: You have to call `ask_resume` first to determine the return value. """ - return self._is_resuming.get(normpath(toppath), False) + return self._is_resuming.get(toppath, False) def ask_resume(self, toppath: PathBytes): """If import of `toppath` was aborted in an earlier session, ask @@ -449,9 +449,9 @@ class ImportSession: if self.want_resume is True or self.should_resume(toppath): log.warning( "Resuming interrupted import of {0}", - util.displayable_path(normpath(toppath)), + util.displayable_path(toppath), ) - self._is_resuming[normpath(toppath)] = True + self._is_resuming[toppath] = True else: # Clear progress; we're starting from the top. ImportState().progress_reset(toppath)