Skip to content

Commit

Permalink
fix invalid alternate cover filename returned in virtualfs
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Sep 10, 2024
1 parent 4123257 commit 00fca17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rose-vfs/rose_vfs/virtualfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
from typing import Any, Generic, Literal, TypeVar

import llfuse

from rose import (
SUPPORTED_AUDIO_EXTENSIONS,
AudioTags,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 00fca17

Please sign in to comment.