diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-09-24 13:41:36 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-09-24 13:41:36 +1000 |
| commit | 5e43b422182b300074a2d2e02736557d34434996 (patch) | |
| tree | f98b15c1f1c39e49aa4257774066ab6793c98608 /src/tangara/database/index.cpp | |
| parent | 2bc191e63d5f6390360b1be98eb39a6a637b0934 (diff) | |
| download | tangara-fw-5e43b422182b300074a2d2e02736557d34434996.tar.gz | |
Adds audiobook index to available indexes
Diffstat (limited to 'src/tangara/database/index.cpp')
| -rw-r--r-- | src/tangara/database/index.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tangara/database/index.cpp b/src/tangara/database/index.cpp index 23d5e04b..0ced27ed 100644 --- a/src/tangara/database/index.cpp +++ b/src/tangara/database/index.cpp @@ -63,6 +63,13 @@ const IndexInfo kPodcasts{ .components = {Tag::kTitle}, }; +const IndexInfo kAudiobooks{ + .id = 6, + .type = MediaType::kAudiobook, + .name = "Audiobooks", + .components = {Tag::kAlbum, Tag::kAlbumOrder}, +}; + static auto titleOrFilename(const TrackData& data, const TrackTags& tags) -> std::pmr::string { auto title = tags.title(); |
