Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8ae9b45d
Commit
8ae9b45d
authored
Jul 09, 2009
by
Bart Nagel
Committed by
Max Kellermann
Jul 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement ArtistSort tag
parent
1eebbc74
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
NEWS
NEWS
+1
-1
tag.c
src/tag.c
+1
-0
tag.h
src/tag.h
+1
-0
tag_id3.c
src/tag_id3.c
+7
-1
No files found.
NEWS
View file @
8ae9b45d
...
...
@@ -4,7 +4,7 @@ ver 0.16 (20??/??/??)
- added "update" idle event
- removed the deprecated "volume" command
* tags:
- added tag "AlbumArtistSort"
- added tag
s "ArtistSort",
"AlbumArtistSort"
- id3: revised "performer" tag support
* decoders:
- ffmpeg: support multiple tags
...
...
src/tag.c
View file @
8ae9b45d
...
...
@@ -43,6 +43,7 @@ static struct {
const
char
*
tag_item_names
[
TAG_NUM_OF_ITEM_TYPES
]
=
{
"Artist"
,
[
TAG_ARTIST_SORT
]
=
"ArtistSort"
,
"Album"
,
"AlbumArtist"
,
[
TAG_ALBUM_ARTIST_SORT
]
=
"AlbumArtistSort"
,
...
...
src/tag.h
View file @
8ae9b45d
...
...
@@ -32,6 +32,7 @@
*/
enum
tag_type
{
TAG_ITEM_ARTIST
,
TAG_ARTIST_SORT
,
TAG_ITEM_ALBUM
,
TAG_ITEM_ALBUM_ARTIST
,
TAG_ALBUM_ARTIST_SORT
,
...
...
src/tag_id3.c
View file @
8ae9b45d
...
...
@@ -42,8 +42,12 @@
# define ID3_FRAME_DISC "TPOS"
# endif
#ifndef ID3_FRAME_ARTIST_SORT
#define ID3_FRAME_ARTIST_SORT "TSOP"
#endif
#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
#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_ALBUM_ARTIST
,
TAG_ITEM_ALBUM_ARTIST
,
ret
);
getID3Info
(
tag
,
ID3_FRAME_ARTIST_SORT
,
TAG_ARTIST_SORT
,
ret
);
getID3Info
(
tag
,
ID3_FRAME_ALBUM_ARTIST_SORT
,
TAG_ALBUM_ARTIST_SORT
,
ret
);
getID3Info
(
tag
,
ID3_FRAME_TITLE
,
TAG_ITEM_TITLE
,
ret
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment