From e517fc534681590ea72b1eac1b5b12d36d7e502d Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 17 Feb 2018 17:46:11 +0100 Subject: Don't consider " feat. " different Check if the artist's name contains " feat." If so, cut it off right there to not clutter the artist's view with "bla feat. blub" and just one song. It's a simple string compare, relying on beet and Musicbrainz doing the right thing (tm) :) --- indexerwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indexerwidget.cpp') diff --git a/indexerwidget.cpp b/indexerwidget.cpp index b5087cc..da9c32f 100644 --- a/indexerwidget.cpp +++ b/indexerwidget.cpp @@ -146,6 +146,10 @@ void BeetReader::run(){ continue; } QString artist = toQString(file.tag()->artist()); + int featIdx = artist.indexOf(" feat."); + if(featIdx > -1){ + artist = artist.left(featIdx); + } QString album = toQString(file.tag()->album()); QString title = toQString(file.tag()->title()); QString genre = toQString(file.tag()->genre()); -- cgit v1.2.3-70-g09d2