Remove Disc / CD from albumname when searching for covers. Dont use url if it's empty in LastFM.

This commit is contained in:
Jonas Kvinge
2018-03-04 14:10:50 +01:00
parent b7466b7fb1
commit 7501e8b14d
7 changed files with 24 additions and 15 deletions

View File

@@ -171,9 +171,9 @@ QString AlbumCoverChoiceController::LoadCoverFromURL(Song *song) {
}
QString AlbumCoverChoiceController::SearchForCover(Song *song) {
//qLog(Debug) << __PRETTY_FUNCTION__;
qLog(Debug) << __PRETTY_FUNCTION__;
QString album = song->effective_album();
album = album.remove(QRegExp(" ?-? ?(\\(|\\[)(Disc|CD)? ?[0-9](\\)|\\])$"));