Merge branch 'master' of https://github.com/faceless2/MPD
This commit is contained in:
commit
c122e990a3
|
@ -796,8 +796,9 @@ Whenever possible, ids should be used.
|
||||||
``sort`` sorts the result by the specified tag. The sort is
|
``sort`` sorts the result by the specified tag. The sort is
|
||||||
descending if the tag is prefixed with a minus ('-'). Only the
|
descending if the tag is prefixed with a minus ('-'). Only the
|
||||||
first tag value will be used, if multiple of the same type exist.
|
first tag value will be used, if multiple of the same type exist.
|
||||||
To sort by "Artist", "Album" or "AlbumArtist", you should specify
|
To sort by "Title", "Artist", "Album", "AlbumArtist" or "Composer",
|
||||||
"ArtistSort", "AlbumSort" or "AlbumArtistSort" instead. These
|
you should specify "TitleSort", "ArtistSort", "AlbumSort",
|
||||||
|
"AlbumArtistSort" or "ComposerSort" instead. These
|
||||||
will automatically fall back to the former if "\*Sort" doesn't
|
will automatically fall back to the former if "\*Sort" doesn't
|
||||||
exist. "AlbumArtist" falls back to just "Artist". The type
|
exist. "AlbumArtist" falls back to just "Artist". The type
|
||||||
"Last-Modified" can sort by file modification time, and "prio"
|
"Last-Modified" can sort by file modification time, and "prio"
|
||||||
|
|
|
@ -49,6 +49,14 @@ ApplyTagFallback(TagType type, F &&f) noexcept
|
||||||
/* fall back to "Album" if no "AlbumSort" was found */
|
/* fall back to "Album" if no "AlbumSort" was found */
|
||||||
return f(TAG_ALBUM);
|
return f(TAG_ALBUM);
|
||||||
|
|
||||||
|
if (type == TAG_TITLE_SORT)
|
||||||
|
/* fall back to "Title" if no "TitleSort" was found */
|
||||||
|
return f(TAG_TITLE);
|
||||||
|
|
||||||
|
if (type == TAG_COMPOSERSORT)
|
||||||
|
/* fall back to "Composer" if no "ComposerSort" was found */
|
||||||
|
return f(TAG_COMPOSER);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue