Implement ArtistSort tag
This commit is contained in:
parent
1eebbc746f
commit
8ae9b45da0
2
NEWS
2
NEWS
|
@ -4,7 +4,7 @@ ver 0.16 (20??/??/??)
|
||||||
- added "update" idle event
|
- added "update" idle event
|
||||||
- removed the deprecated "volume" command
|
- removed the deprecated "volume" command
|
||||||
* tags:
|
* tags:
|
||||||
- added tag "AlbumArtistSort"
|
- added tags "ArtistSort", "AlbumArtistSort"
|
||||||
- id3: revised "performer" tag support
|
- id3: revised "performer" tag support
|
||||||
* decoders:
|
* decoders:
|
||||||
- ffmpeg: support multiple tags
|
- ffmpeg: support multiple tags
|
||||||
|
|
|
@ -43,6 +43,7 @@ static struct {
|
||||||
|
|
||||||
const char *tag_item_names[TAG_NUM_OF_ITEM_TYPES] = {
|
const char *tag_item_names[TAG_NUM_OF_ITEM_TYPES] = {
|
||||||
"Artist",
|
"Artist",
|
||||||
|
[TAG_ARTIST_SORT] = "ArtistSort",
|
||||||
"Album",
|
"Album",
|
||||||
"AlbumArtist",
|
"AlbumArtist",
|
||||||
[TAG_ALBUM_ARTIST_SORT] = "AlbumArtistSort",
|
[TAG_ALBUM_ARTIST_SORT] = "AlbumArtistSort",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
*/
|
*/
|
||||||
enum tag_type {
|
enum tag_type {
|
||||||
TAG_ITEM_ARTIST,
|
TAG_ITEM_ARTIST,
|
||||||
|
TAG_ARTIST_SORT,
|
||||||
TAG_ITEM_ALBUM,
|
TAG_ITEM_ALBUM,
|
||||||
TAG_ITEM_ALBUM_ARTIST,
|
TAG_ITEM_ALBUM_ARTIST,
|
||||||
TAG_ALBUM_ARTIST_SORT,
|
TAG_ALBUM_ARTIST_SORT,
|
||||||
|
|
|
@ -42,8 +42,12 @@
|
||||||
# define ID3_FRAME_DISC "TPOS"
|
# define ID3_FRAME_DISC "TPOS"
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#ifndef ID3_FRAME_ARTIST_SORT
|
||||||
|
#define ID3_FRAME_ARTIST_SORT "TSOP"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef ID3_FRAME_ALBUM_ARTIST_SORT
|
#ifndef ID3_FRAME_ALBUM_ARTIST_SORT
|
||||||
#define ID3_FRAME_ALBUM_ARTIST_SORT "TSO2"
|
#define ID3_FRAME_ALBUM_ARTIST_SORT "TSO2" /* this one is unofficial, introduced by Itunes */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ID3_FRAME_ALBUM_ARTIST
|
#ifndef ID3_FRAME_ALBUM_ARTIST
|
||||||
|
@ -329,6 +333,8 @@ struct tag *tag_id3_import(struct id3_tag * tag)
|
||||||
getID3Info(tag, ID3_FRAME_ARTIST, TAG_ITEM_ARTIST, ret);
|
getID3Info(tag, ID3_FRAME_ARTIST, TAG_ITEM_ARTIST, ret);
|
||||||
getID3Info(tag, ID3_FRAME_ALBUM_ARTIST,
|
getID3Info(tag, ID3_FRAME_ALBUM_ARTIST,
|
||||||
TAG_ITEM_ALBUM_ARTIST, ret);
|
TAG_ITEM_ALBUM_ARTIST, ret);
|
||||||
|
getID3Info(tag, ID3_FRAME_ARTIST_SORT,
|
||||||
|
TAG_ARTIST_SORT, ret);
|
||||||
getID3Info(tag, ID3_FRAME_ALBUM_ARTIST_SORT,
|
getID3Info(tag, ID3_FRAME_ALBUM_ARTIST_SORT,
|
||||||
TAG_ALBUM_ARTIST_SORT, ret);
|
TAG_ALBUM_ARTIST_SORT, ret);
|
||||||
getID3Info(tag, ID3_FRAME_TITLE, TAG_ITEM_TITLE, ret);
|
getID3Info(tag, ID3_FRAME_TITLE, TAG_ITEM_TITLE, ret);
|
||||||
|
|
Loading…
Reference in New Issue