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
ca42f014
Commit
ca42f014
authored
Jan 14, 2009
by
Daniele Sluijters
Committed by
Max Kellermann
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag_id3: added support for the "album artist" tag
Read the id3 tags "TPE2" and "TSO2" into the "album artist" tag.
parent
ae5517b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tag_id3.c
src/tag_id3.c
+12
-0
No files found.
src/tag_id3.c
View file @
ca42f014
...
...
@@ -41,6 +41,14 @@
# define ID3_FRAME_DISC "TPOS"
# endif
#ifndef ID3_FRAME_ALBUM_ARTIST_SORT
#define ID3_FRAME_ALBUM_ARTIST_SORT "TSO2"
#endif
#ifndef ID3_FRAME_ALBUM_ARTIST
#define ID3_FRAME_ALBUM_ARTIST "TPE2"
#endif
/* This will try to convert a string to utf-8,
*/
static
id3_utf8_t
*
processID3FieldString
(
int
is_id3v1
,
const
id3_ucs4_t
*
ucs4
,
int
type
)
...
...
@@ -210,6 +218,10 @@ struct tag *tag_id3_import(struct id3_tag * tag)
struct
tag
*
ret
=
NULL
;
ret
=
getID3Info
(
tag
,
ID3_FRAME_ARTIST
,
TAG_ITEM_ARTIST
,
ret
);
ret
=
getID3Info
(
tag
,
ID3_FRAME_ALBUM_ARTIST
,
TAG_ITEM_ALBUM_ARTIST
,
ret
);
ret
=
getID3Info
(
tag
,
ID3_FRAME_ALBUM_ARTIST_SORT
,
TAG_ITEM_ALBUM_ARTIST
,
ret
);
ret
=
getID3Info
(
tag
,
ID3_FRAME_TITLE
,
TAG_ITEM_TITLE
,
ret
);
ret
=
getID3Info
(
tag
,
ID3_FRAME_ALBUM
,
TAG_ITEM_ALBUM
,
ret
);
ret
=
getID3Info
(
tag
,
ID3_FRAME_TRACK
,
TAG_ITEM_TRACK
,
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