[musicdb] If we're rescanning an album from tags (i.e. tags have changed) make sure...
authorJonathan Marshall <jmarshall@xbmc.org>
Sun, 1 Dec 2013 07:57:24 +0000 (20:57 +1300)
committerJonathan Marshall <jmarshall@xbmc.org>
Tue, 24 Dec 2013 00:48:55 +0000 (13:48 +1300)
commitc57ca58944eb3e5413710ff9f8fa4fcf8da7420a
treecbb9e2bc498dd5c45c7dd312d57175734b438278
parentd0bd242d630946bbea9db8fd2e5aa29f64be710d
[musicdb] If we're rescanning an album from tags (i.e. tags have changed) make sure we update the album as best we can.
This includes:
1. Update genre, year, compilation.
2. If a MBID exists, also update album name and album artist (as these may differ as we match on MBID).
3. Reset lastScraped time so that online metadata is refreshed.
4. Ensure we remove previously assigned album artists before adding the current ones.
5. Ensure we remove previously assigned album genres before adding the current ones.

The main place this process can fail is in multi-folder albums. In this case, the artists and genres (and year and compilation flag)
from the last scanned folder will be what is included.

A way to work around this for the future might be that, in the scanner, we not only scan the current folder, but for each album, we
grab all other folders those albums appear on and scan them at the same time.  This ensures that each album is complete during an
individual scan.
xbmc/music/MusicDatabase.cpp