From 8811c6459990768ab2e6bdb091eec27f9d18d428 Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Mon, 3 Jun 2024 00:54:22 +0200 Subject: [PATCH 1/2] Adjust temporary files Rigth now it creates something like: ``` .../Perota Chingo/Un viajecito/.12 Rie Chinito.flac64u8gm5u.beets ``` where no separatio between temp name and file extention, and it makes quite hard to read it. So, this changes adjust name to ``` .../Perota Chingo/Un viajecito/.12 Rie Chinito.flac.64u8gm5u.beets ``` This was one of forgotten fixup from https://github.com/beetbox/beets/commit/8d50301be58463ac860cafaf898670fccb525bbe --- beets/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/util/__init__.py b/beets/util/__init__.py index 4335e0f3e..916abddde 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -526,7 +526,7 @@ def move(path: bytes, dest: bytes, replace: bool = False): dirname = os.path.dirname(bytestring_path(dest)) tmp = tempfile.NamedTemporaryFile( suffix=syspath(b".beets", prefix=False), - prefix=syspath(b"." + basename, prefix=False), + prefix=syspath(b"." + basename + b".", prefix=False), dir=syspath(dirname), delete=False, ) From d8ea47476439c47d17849cca38c6077c84200cfc Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Mon, 3 Jun 2024 13:28:47 +0200 Subject: [PATCH 2/2] Update changelog.rst --- docs/changelog.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 205af7dad..f129edc54 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,9 @@ Changelog Changelog goes here! Please add your entry to the bottom of one of the lists below! +Bug fixes: + +* Improved naming of temporary files by separating the random part with the file extension. 2.0.0 (May 30, 2024) --------------------