mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Forgot composer-sort and two instances of strip_article()
This commit is contained in:
parent
a102d3f138
commit
2765a12f76
2
src/db.c
2
src/db.c
@ -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:
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user