DuplicateSongDetector: Fix SQL so duplicates are from the same source
authorJavier Alfonso Bellota de Frutos <PhoneixSegovia@gmail.com>
Tue, 31 Jul 2012 11:46:02 +0000 (13:46 +0200)
committerBertrand Lorentz <bertrand.lorentz@gmail.com>
Sat, 4 Aug 2012 15:57:46 +0000 (17:57 +0200)
commit2572e19d2d5310263c450f4717ee58d2d746b4ea
treebdee9605ec9301b04e3b4fb66d99e030954e9080
parentaaff0296fd5d7a810625a81366db02cc19ec1464
DuplicateSongDetector: Fix SQL so duplicates are from the same source

The SQL query was getting duplicate tracks with one of the tracks having
PrimarySourceID=1. Make sure the two tracks have the same
PrimarySourceID, and use the MusicLibrary.DbId instead of hardcoding the
value.

Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
src/DuplicateSongDetector/Banshee.DuplicateSongDetector/SongDuplicateView.cs