mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-25 04:43:09 -04:00
Add ID3v2.2 tag names
This commit is contained in:
parent
39dfa4dae1
commit
6424a1fe95
@ -59,17 +59,23 @@ struct metadata_map {
|
|||||||
static struct metadata_map md_map[] =
|
static struct metadata_map md_map[] =
|
||||||
{
|
{
|
||||||
{ "title", 0, mfi_offsetof(title) },
|
{ "title", 0, mfi_offsetof(title) },
|
||||||
|
{ "TT2", 0, mfi_offsetof(title) }, /* ID3v2.2 */
|
||||||
{ "TIT2", 0, mfi_offsetof(title) }, /* ID3v2.3 */
|
{ "TIT2", 0, mfi_offsetof(title) }, /* ID3v2.3 */
|
||||||
{ "artist", 0, mfi_offsetof(artist) },
|
{ "artist", 0, mfi_offsetof(artist) },
|
||||||
{ "author", 0, mfi_offsetof(artist) },
|
{ "author", 0, mfi_offsetof(artist) },
|
||||||
|
{ "TP1", 0, mfi_offsetof(artist) }, /* ID3v2.2 */
|
||||||
{ "TPE1", 0, mfi_offsetof(artist) }, /* ID3v2.3 */
|
{ "TPE1", 0, mfi_offsetof(artist) }, /* ID3v2.3 */
|
||||||
{ "albumartist", 0, mfi_offsetof(album_artist) },
|
{ "albumartist", 0, mfi_offsetof(album_artist) },
|
||||||
|
{ "TP2", 0, mfi_offsetof(album_artist) }, /* ID3v2.2 */
|
||||||
{ "TPE2", 0, mfi_offsetof(album_artist) }, /* ID3v2.3 */
|
{ "TPE2", 0, mfi_offsetof(album_artist) }, /* ID3v2.3 */
|
||||||
{ "album", 0, mfi_offsetof(album) },
|
{ "album", 0, mfi_offsetof(album) },
|
||||||
|
{ "TAL", 0, mfi_offsetof(album) }, /* ID3v2.2 */
|
||||||
{ "TALB", 0, mfi_offsetof(album) }, /* ID3v2.3 */
|
{ "TALB", 0, mfi_offsetof(album) }, /* ID3v2.3 */
|
||||||
{ "genre", 0, mfi_offsetof(genre) },
|
{ "genre", 0, mfi_offsetof(genre) },
|
||||||
|
{ "TCO", 0, mfi_offsetof(genre) }, /* ID3v2.2 */
|
||||||
{ "TCON", 0, mfi_offsetof(genre) }, /* ID3v2.3 */
|
{ "TCON", 0, mfi_offsetof(genre) }, /* ID3v2.3 */
|
||||||
{ "composer", 0, mfi_offsetof(composer) },
|
{ "composer", 0, mfi_offsetof(composer) },
|
||||||
|
{ "TCM", 0, mfi_offsetof(composer) }, /* ID3v2.2 */
|
||||||
{ "TCOM", 0, mfi_offsetof(composer) }, /* ID3v2.3 */
|
{ "TCOM", 0, mfi_offsetof(composer) }, /* ID3v2.3 */
|
||||||
{ "grouping", 0, mfi_offsetof(grouping) },
|
{ "grouping", 0, mfi_offsetof(grouping) },
|
||||||
{ "orchestra", 0, mfi_offsetof(orchestra) },
|
{ "orchestra", 0, mfi_offsetof(orchestra) },
|
||||||
@ -79,12 +85,15 @@ static struct metadata_map md_map[] =
|
|||||||
{ "totaltracks", 1, mfi_offsetof(total_tracks) },
|
{ "totaltracks", 1, mfi_offsetof(total_tracks) },
|
||||||
{ "track", 1, mfi_offsetof(track) },
|
{ "track", 1, mfi_offsetof(track) },
|
||||||
{ "tracknumber", 1, mfi_offsetof(track) },
|
{ "tracknumber", 1, mfi_offsetof(track) },
|
||||||
|
{ "TRK", 1, mfi_offsetof(track) }, /* ID3v2.2 */
|
||||||
{ "TRCK", 1, mfi_offsetof(track) }, /* ID3v2.3 */
|
{ "TRCK", 1, mfi_offsetof(track) }, /* ID3v2.3 */
|
||||||
{ "totaldiscs", 1, mfi_offsetof(total_discs) },
|
{ "totaldiscs", 1, mfi_offsetof(total_discs) },
|
||||||
{ "disc", 1, mfi_offsetof(disc) },
|
{ "disc", 1, mfi_offsetof(disc) },
|
||||||
{ "discnumber", 1, mfi_offsetof(disc) },
|
{ "discnumber", 1, mfi_offsetof(disc) },
|
||||||
|
{ "TPA", 1, mfi_offsetof(disc) }, /* ID3v2.2 */
|
||||||
{ "TPOS", 1, mfi_offsetof(disc) }, /* ID3v2.3 */
|
{ "TPOS", 1, mfi_offsetof(disc) }, /* ID3v2.3 */
|
||||||
{ "year", 1, mfi_offsetof(year) },
|
{ "year", 1, mfi_offsetof(year) },
|
||||||
|
{ "TYE", 1, mfi_offsetof(year) }, /* ID3v2.2 */
|
||||||
{ "TYER", 1, mfi_offsetof(year) }, /* ID3v2.3 */
|
{ "TYER", 1, mfi_offsetof(year) }, /* ID3v2.3 */
|
||||||
{ "TDRC", 1, mfi_offsetof(year) }, /* ID3v2.3 */
|
{ "TDRC", 1, mfi_offsetof(year) }, /* ID3v2.3 */
|
||||||
{ "date", 1, mfi_offsetof(year) },
|
{ "date", 1, mfi_offsetof(year) },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user