From 37be6e8ef98ec1a8881c30d20fe91b1a61f4194f Mon Sep 17 00:00:00 2001 From: cloud74pebble Date: Sat, 21 Dec 2024 21:50:15 +0100 Subject: [PATCH] Update album.py (#732) 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 "/" --- streamrip/metadata/album.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamrip/metadata/album.py b/streamrip/metadata/album.py index 6264939..3ff7a81 100644 --- a/streamrip/metadata/album.py +++ b/streamrip/metadata/album.py @@ -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 @@ -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: