Forgot composer-sort and two instances of strip_article()

This commit is contained in:
ejurgensen 2013-12-05 22:46:12 +01:00
parent a102d3f138
commit 2765a12f76
2 changed files with 3 additions and 3 deletions

View File

@ -1356,7 +1356,7 @@ db_query_start(struct query_params *qp)
break;
case Q_BROWSE_COMPOSERS:
ret = db_build_query_browse(qp, "composer", "composer", &query);
ret = db_build_query_browse(qp, "composer", "composer_sort", &query);
break;
default:

View File

@ -358,11 +358,11 @@ fixup_tags(struct media_file_info *mfi)
if (!mfi->album_artist_sort && (strcmp(mfi->album_artist, mfi->artist) == 0))
mfi->album_artist_sort = strdup(mfi->artist_sort);
else
normalize_fixup_tag(&mfi->album_artist_sort, mfi->album_artist);
normalize_fixup_tag(&mfi->album_artist_sort, strip_article(mfi->album_artist));
/* Composer is not one of our mandatory tags, so take extra care */
if (mfi->composer_sort || mfi->composer)
normalize_fixup_tag(&mfi->composer_sort, mfi->composer);
normalize_fixup_tag(&mfi->composer_sort, strip_article(mfi->composer));
}