Skip to content

Commit

Permalink
Update album.py (#732)
Browse files Browse the repository at this point in the history
Correct handling of subfolders in config variable "folder_format"

e.g.:
[filepaths]
folder_format = "{albumartist}/{title} ({year})"

old method didn't allow creating subfolders by stripping "\" or "/"
  • Loading branch information
cloud74pebble authored Dec 21, 2024
1 parent 3a3f649 commit 37be6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamrip/metadata/album.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataclasses import dataclass
from typing import Optional

from ..filepath_utils import clean_filename
from ..filepath_utils import clean_filename, clean_filepath
from .covers import Covers
from .util import get_quality_id, safe_get, typed

Expand Down Expand Up @@ -78,7 +78,7 @@ def format_folder_path(self, formatter: str) -> str:
"container": self.info.container,
}

return clean_filename(formatter.format(**info))
return clean_filepath(formatter.format(**info))

@classmethod
def from_qobuz(cls, resp: dict) -> AlbumMetadata:
Expand Down

0 comments on commit 37be6e8

Please sign in to comment.