diff --git a/README.md b/README.md index d99105e..2f07c28 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ Commands: collages Manage collages. fs Manage the virtual library. releases Manage releases. + playlists Manage playlists. ``` ## Configuration diff --git a/conftest.py b/conftest.py index a3c1413..9b46e43 100644 --- a/conftest.py +++ b/conftest.py @@ -19,6 +19,7 @@ TEST_RELEASE_2 = TESTDATA / "Test Release 2" TEST_RELEASE_3 = TESTDATA / "Test Release 3" TEST_COLLAGE_1 = TESTDATA / "Collage 1" +TEST_PLAYLIST_1 = TESTDATA / "Playlist 1" TEST_TAGGER = TESTDATA / "tagger" @@ -151,6 +152,16 @@ def seeded_cache(config: Config) -> None: (collage_name, release_id, position) VALUES ('Rose Gold' , 'r1' , 0) , ('Rose Gold' , 'r2' , 1); + +INSERT INTO playlists + (name , source_mtime) +VALUES ('Lala Lisa' , '999') + , ('Turtle Rabbit', '999'); + +INSERT INTO playlists_tracks + (playlist_name, track_id, position) +VALUES ('Lala Lisa' , 't1' , 0) + , ('Lala Lisa' , 't3' , 1); """ # noqa: E501 ) @@ -166,6 +177,7 @@ def source_dir(config: Config) -> Path: shutil.copytree(TEST_RELEASE_2, config.music_source_dir / TEST_RELEASE_2.name) shutil.copytree(TEST_RELEASE_3, config.music_source_dir / TEST_RELEASE_3.name) shutil.copytree(TEST_COLLAGE_1, config.music_source_dir / "!collages") + shutil.copytree(TEST_PLAYLIST_1, config.music_source_dir / "!playlists") update_cache(config) return config.music_source_dir diff --git a/testdata/Playlist 1/Lala Lisa.toml b/testdata/Playlist 1/Lala Lisa.toml new file mode 100644 index 0000000..611d14c --- /dev/null +++ b/testdata/Playlist 1/Lala Lisa.toml @@ -0,0 +1,6 @@ +[[tracks]] +uuid = "iloveloona" +description_meta = "lalala" +[[tracks]] +uuid = "ilovetwice" +description_meta = "hahaha" diff --git a/testdata/Test Release 2/01.m4a b/testdata/Test Release 2/01.m4a index cd8daea..a916190 100644 Binary files a/testdata/Test Release 2/01.m4a and b/testdata/Test Release 2/01.m4a differ diff --git a/testdata/Test Release 2/02.m4a b/testdata/Test Release 2/02.m4a index 481ed59..23d4442 100644 Binary files a/testdata/Test Release 2/02.m4a and b/testdata/Test Release 2/02.m4a differ