From 2ef77852b714a6dedfe2f3d7baac687006864c68 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Wed, 12 Nov 2025 20:47:36 +0100 Subject: [PATCH 1/2] Fix import --from-logfile Fixes "none of the paths are importable" error with any valid import log file that was accidentally introduced in commit 4260162d4 --- beets/ui/commands/import_/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/commands/import_/__init__.py b/beets/ui/commands/import_/__init__.py index 5dba71fa80..b2991f1833 100644 --- a/beets/ui/commands/import_/__init__.py +++ b/beets/ui/commands/import_/__init__.py @@ -125,7 +125,7 @@ def import_func(lib, opts, args: list[str]): # If all paths were read from a logfile, and none of them exist, throw # an error - if not paths: + if not byte_paths: raise ui.UserError("none of the paths are importable") import_files(lib, byte_paths, query) From 97bc0b3b8c7cf554ade7a9fbfa51b70cda529246 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Wed, 12 Nov 2025 21:05:15 +0100 Subject: [PATCH 2/2] Changelog for #6161 --- docs/changelog.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 1225f4f9f7..366af9ff0a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -41,6 +41,8 @@ Bug fixes: the default config path. :bug:`5652` - :doc:`plugins/lyrics`: Accepts strings for lyrics sources (previously only accepted a list of strings). :bug:`5962` +- Fix a bug introduced in release 2.4.0 where import from any valid + import-log-file always threw a "none of the paths are importable" error. For plugin developers: