aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Blake <oak99sky@yahoo.co.uk>2020-05-18 17:05:10 +0100
committerGitHub <noreply@github.com>2020-05-18 17:05:10 +0100
commit71ada2cd24a911bbde4eed201ea0226bf2435269 (patch)
tree7cdacdd7a4f28264cca8dba02e5a299f23c91a3f
parente9847bc01754a989112dcdcc1307981ab387fb3f (diff)
parent3b95fddf281a519da425ab121a40677830162306 (diff)
Merge pull request #17887 from DaveTBlake/albummergefix_leia
[Fix][Backport]Prevent album scraping leaving artist blank
-rw-r--r--xbmc/music/Album.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xbmc/music/Album.cpp b/xbmc/music/Album.cpp
index 50808e4b76..2836c89542 100644
--- a/xbmc/music/Album.cpp
+++ b/xbmc/music/Album.cpp
@@ -246,17 +246,17 @@ void CAlbum::MergeScrapedAlbum(const CAlbum& source, bool override /* = true */)
}
/*
- Scraping can return different album artists from the originals derived from tags, even when doing
- a lookup on name.
+ Scraping can return different album artists from the originals derived from tags, even when
+ doing a lookup on artist name.
When overwritting the data derived from tags, AND the original and scraped album have the same
Musicbrainz album ID, then merging an album replaces both the album artsts and the song artists
- with those scraped.
+ with those scraped (providing they are not empty).
When not doing that kind of merge, for any matching artist names the Musicbrainz artist id
returned by the scraper can be used to populate any previously missing Musicbrainz artist id values.
*/
- if (bArtistSongMerge)
+ if (bArtistSongMerge && !source.artistCredits.empty())
{
artistCredits = source.artistCredits; // Replace artists and store mbid returned by scraper
strArtistDesc.clear(); // @todo: set artist display string e.g. "artist1 & artist2" when scraped