From 3aa6edd74f08a9ef6c1734659d71ee1e274f1a02 Mon Sep 17 00:00:00 2001 From: emeric Date: Wed, 15 May 2019 13:15:18 +0200 Subject: [PATCH] Added Album Artist support --- README.md | 5 +- approot/artist.xml | 2 +- approot/release.xml | 2 +- src/Makefile.am | 2 + src/database/Artist.cpp | 60 +- src/database/Artist.hpp | 13 +- src/database/Cluster.cpp | 6 + src/database/Cluster.hpp | 1 + src/database/DatabaseHandler.cpp | 2 + src/database/Release.cpp | 24 +- src/database/Release.hpp | 26 +- src/database/Track.cpp | 56 +- src/database/Track.hpp | 21 +- src/database/TrackArtistLink.cpp | 41 ++ src/database/TrackArtistLink.hpp | 81 +++ src/database/TrackList.cpp | 2 +- src/main/main.cpp | 2 + src/scanner/MediaScanner.cpp | 33 +- src/ui/explore/ArtistView.cpp | 24 +- src/ui/explore/ReleaseLink.cpp | 5 +- src/ui/explore/ReleaseView.cpp | 13 +- src/ui/explore/ReleasesView.cpp | 5 +- test/Makefile.am | 28 +- test/database/DatabaseTest.cpp | 948 +++++++++++++++++++++++++++++ test/{som-test => som}/SomTest.cpp | 23 +- 25 files changed, 1327 insertions(+), 98 deletions(-) create mode 100644 src/database/TrackArtistLink.cpp create mode 100644 src/database/TrackArtistLink.hpp create mode 100644 test/database/DatabaseTest.cpp rename test/{som-test => som}/SomTest.cpp (76%) diff --git a/README.md b/README.md index 67585370..55d72afa 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,9 @@ A [demo](http://lms.demo.poupon.io) instance is available, with the following li - Audio transcode for maximum interoperability and low bandwith requirements - Persistent play queue across sessions - Subsonic API -- Multi-value tags -- Custom tag support (ex: "mood", "genre", "albummood", "albumgrouping", ...) +- Album artist +- Multi-value tags (artists, genres, ...) +- Custom tags (ex: "mood", "genre", "albummood", "albumgrouping", ...) - MusicBrainzID support to handle duplicated artist and release names - Playlists (only using Subsonic API for now) diff --git a/approot/artist.xml b/approot/artist.xml index ef4d8032..63b88005 100644 --- a/approot/artist.xml +++ b/approot/artist.xml @@ -22,7 +22,7 @@

${name class="Lms-explore-releasename"}

- ${}

${tr:Lms.Explore.various-artists}

${
} + ${}

${artist class="Lms-explore-artistname"}

${
}

${}${year}${}${} (${orig-year})${}

${play-btn}${add-btn} diff --git a/approot/release.xml b/approot/release.xml index 5f66366e..9360d5c5 100644 --- a/approot/release.xml +++ b/approot/release.xml @@ -14,7 +14,7 @@