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
92541ded
Commit
92541ded
authored
Oct 22, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://github.com/skidoo23/MPD
parents
650a67dc
fbea965c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
9 deletions
+20
-9
protocol.rst
doc/protocol.rst
+1
-0
user.rst
doc/user.rst
+1
-0
Id3Scan.cxx
src/tag/Id3Scan.cxx
+14
-7
Names.c
src/tag/Names.c
+2
-1
Type.h
src/tag/Type.h
+2
-1
No files found.
doc/protocol.rst
View file @
92541ded
...
...
@@ -207,6 +207,7 @@ The following tags are supported by
* **performer**: the artist who performed the song.
* **comment**: a human-readable comment about this song. The exact meaning of this tag is not well-defined.
* **disc**: the decimal disc number in a multi-disc album.
* **label**: the name of the label or publisher.
* **musicbrainz_artistid**: the artist id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_albumid**: the album id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_albumartistid**: the album artist id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
...
...
doc/user.rst
View file @
92541ded
...
...
@@ -770,6 +770,7 @@ When scanning or playing a song, :program:`MPD` parses its metadata. The followi
* **performer**: the artist who performed the song.
* **comment**: a human-readable comment about this song. The exact meaning of this tag is not well-defined.
* **disc**: the decimal disc number in a multi-disc album.
* **label**: the name of the label or publisher.
* **musicbrainz_artistid**: the artist id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_albumid**: the album id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
* **musicbrainz_albumartistid**: the album artist id in the `MusicBrainz <https://picard.musicbrainz.org/docs/mappings/>`_ database.
...
...
src/tag/Id3Scan.cxx
View file @
92541ded
/*
* Copyright 2003-201
7
The Music Player Daemon Project
* Copyright 2003-201
8
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -38,12 +38,13 @@
#include <string.h>
#include <stdlib.h>
# ifndef ID3_FRAME_COMPOSER
# define ID3_FRAME_COMPOSER "TCOM"
# endif
# ifndef ID3_FRAME_DISC
# define ID3_FRAME_DISC "TPOS"
# endif
#ifndef ID3_FRAME_COMPOSER
#define ID3_FRAME_COMPOSER "TCOM"
#endif
#ifndef ID3_FRAME_DISC
#define ID3_FRAME_DISC "TPOS"
#endif
#ifndef ID3_FRAME_ARTIST_SORT
#define ID3_FRAME_ARTIST_SORT "TSOP"
...
...
@@ -61,6 +62,10 @@
#define ID3_FRAME_ORIGINAL_RELEASE_DATE "TDOR"
#endif
#ifndef ID3_FRAME_LABEL
#define ID3_FRAME_LABEL "TPUB"
#endif
gcc_pure
static
id3_utf8_t
*
tag_id3_getstring
(
const
struct
id3_frame
*
frame
,
unsigned
i
)
noexcept
...
...
@@ -317,6 +322,8 @@ scan_id3_tag(const struct id3_tag *tag, TagHandler &handler) noexcept
handler
);
tag_id3_import_text
(
tag
,
ID3_FRAME_DISC
,
TAG_DISC
,
handler
);
tag_id3_import_text
(
tag
,
ID3_FRAME_LABEL
,
TAG_LABEL
,
handler
);
tag_id3_import_musicbrainz
(
tag
,
handler
);
tag_id3_import_ufid
(
tag
,
handler
);
...
...
src/tag/Names.c
View file @
92541ded
/*
* Copyright 2003-201
7
The Music Player Daemon Project
* Copyright 2003-201
8
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -37,6 +37,7 @@ const char *const tag_item_names[TAG_NUM_OF_ITEM_TYPES] = {
[
TAG_PERFORMER
]
=
"Performer"
,
[
TAG_COMMENT
]
=
"Comment"
,
[
TAG_DISC
]
=
"Disc"
,
[
TAG_LABEL
]
=
"Label"
,
/* MusicBrainz tags from http://musicbrainz.org/doc/MusicBrainzTag */
[
TAG_MUSICBRAINZ_ARTISTID
]
=
"MUSICBRAINZ_ARTISTID"
,
...
...
src/tag/Type.h
View file @
92541ded
/*
* Copyright 2003-201
7
The Music Player Daemon Project
* Copyright 2003-201
8
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -51,6 +51,7 @@ enum TagType
TAG_PERFORMER
,
TAG_COMMENT
,
TAG_DISC
,
TAG_LABEL
,
TAG_MUSICBRAINZ_ARTISTID
,
TAG_MUSICBRAINZ_ALBUMID
,
...
...
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