From 00fca17114d43397288d3c9ceb161c4b8bb3f1b6 Mon Sep 17 00:00:00 2001 From: blissful Date: Tue, 10 Sep 2024 15:54:04 -0700 Subject: [PATCH] fix invalid alternate cover filename returned in virtualfs --- rose-vfs/rose_vfs/virtualfs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rose-vfs/rose_vfs/virtualfs.py b/rose-vfs/rose_vfs/virtualfs.py index b1d86b8..9e7730c 100644 --- a/rose-vfs/rose_vfs/virtualfs.py +++ b/rose-vfs/rose_vfs/virtualfs.py @@ -54,6 +54,7 @@ from typing import Any, Generic, Literal, TypeVar import llfuse + from rose import ( SUPPORTED_AUDIO_EXTENSIONS, AudioTags, @@ -1160,7 +1161,10 @@ def readdir(self, p: VirtualPath) -> Iterator[tuple[str, dict[str, Any]]]: for trk, vname in self.vnames.list_track_paths(p, tracks): yield vname, self.stat("file", trk.source_path) if release.cover_image_path: - yield release.cover_image_path.name, self.stat("file", release.cover_image_path) + yield ( + f"cover{release.cover_image_path.suffix}", + self.stat("file", release.cover_image_path), + ) yield f".rose.{release.id}.toml", self.stat("file") return raise llfuse.FUSEError(errno.ENOENT)