Einheitliches Dateinamen-Schema: 01_-_Titel_-_Kuenstler.flac
organizer: Separator vor Titel angleichen (war: 01_Titel_-_K., neu: 01_-_Titel_-_K.) playlist: Glob-Pattern und Fallback auf neues Schema angepasst tests: Assertions aktualisiert Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
bafea5f335
commit
4e6d82a41d
4 changed files with 21 additions and 21 deletions
|
|
@ -167,8 +167,8 @@ class TestBuildMapping:
|
|||
mapping = build_mapping(album, tmp_path, tmp_path / "output")
|
||||
|
||||
targets = list(mapping.values())
|
||||
assert targets[0].name == "01_Erster_Song_-_TestArtist.flac"
|
||||
assert targets[1].name == "02_Zweiter_Song_-_TestArtist.flac"
|
||||
assert targets[0].name == "01_-_Erster_Song_-_TestArtist.flac"
|
||||
assert targets[1].name == "02_-_Zweiter_Song_-_TestArtist.flac"
|
||||
# Single-Disc: kein CD1-Unterordner
|
||||
assert "CD1" not in str(targets[0])
|
||||
|
||||
|
|
@ -207,7 +207,7 @@ class TestBuildMapping:
|
|||
# Source and target are in the same directory
|
||||
assert src.parent == tmp_path
|
||||
assert dst.parent == tmp_path
|
||||
assert dst.name == "01_Song_-_Artist.flac"
|
||||
assert dst.name == "01_-_Song_-_Artist.flac"
|
||||
|
||||
def test_track_artist_overrides_album_artist(self, tmp_path: Path) -> None:
|
||||
(tmp_path / "track01.flac").touch()
|
||||
|
|
@ -227,8 +227,8 @@ class TestBuildMapping:
|
|||
)
|
||||
mapping = build_mapping(album, tmp_path, in_place=True)
|
||||
targets = list(mapping.values())
|
||||
assert targets[0].name == "01_Song_A_-_Artist_X.flac"
|
||||
assert targets[1].name == "02_Song_B_-_Various_Artists.flac"
|
||||
assert targets[0].name == "01_-_Song_A_-_Artist_X.flac"
|
||||
assert targets[1].name == "02_-_Song_B_-_Various_Artists.flac"
|
||||
|
||||
def test_output_dir_structure(self, tmp_path: Path) -> None:
|
||||
(tmp_path / "track01.flac").touch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue