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
acaa7254
Commit
acaa7254
authored
Aug 25, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/cue: map "PERFORMER" to "artist" or "album artist"
Implements Mantis ticket 0003549.
parent
f3515505
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
NEWS
NEWS
+2
-0
cue_parser.c
src/cue/cue_parser.c
+11
-1
No files found.
NEWS
View file @
acaa7254
...
...
@@ -9,6 +9,8 @@ ver 0.17.2 (2012/??/??)
* output:
- httpd: use monotonic clock, avoid hiccups after system clock adjustment
- httpd: fix throttling bug after resuming playback
* playlist:
- cue: map "PERFORMER" to "artist" or "album artist"
* mapper: fix non-UTF8 music directory name
* mapper: fix potential crash in file permission check
* playlist: fix use-after-free bug
...
...
src/cue/cue_parser.c
View file @
acaa7254
...
...
@@ -216,9 +216,19 @@ cue_parser_feed2(struct cue_parser *parser, char *p)
if
(
tag
!=
NULL
)
cue_parse_rem
(
p
,
tag
);
}
else
if
(
strcmp
(
command
,
"PERFORMER"
)
==
0
)
{
/* MPD knows a "performer" tag, but it is not a good
match for this CUE tag; from the Hydrogenaudio
Knowledgebase: "At top-level this will specify the
CD artist, while at track-level it specifies the
track artist." */
enum
tag_type
type
=
parser
->
state
==
TRACK
?
TAG_ARTIST
:
TAG_ALBUM_ARTIST
;
struct
tag
*
tag
=
cue_current_tag
(
parser
);
if
(
tag
!=
NULL
)
cue_add_tag
(
tag
,
TAG_PERFORMER
,
p
);
cue_add_tag
(
tag
,
type
,
p
);
}
else
if
(
strcmp
(
command
,
"TITLE"
)
==
0
)
{
if
(
parser
->
state
==
HEADER
)
cue_add_tag
(
parser
->
tag
,
TAG_ALBUM
,
p
);
...
...
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