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
573a413e
Commit
573a413e
authored
Jul 19, 2017
by
Matthew Leon
Committed by
Max Kellermann
Jul 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move MusicBrainz id3v2 tags to separate file
We will reuse these tags elsewhere.
parent
f633e6ca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
13 deletions
+63
-13
Makefile.am
Makefile.am
+1
-0
Id3MusicBrainz.cxx
src/tag/Id3MusicBrainz.cxx
+34
-0
Id3MusicBrainz.hxx
src/tag/Id3MusicBrainz.hxx
+25
-0
TagId3.cxx
src/tag/TagId3.cxx
+3
-13
No files found.
Makefile.am
View file @
573a413e
...
...
@@ -923,6 +923,7 @@ libtag_a_SOURCES =\
src/tag/ReplayGain.cxx src/tag/ReplayGain.hxx
\
src/tag/MixRamp.cxx src/tag/MixRamp.hxx
\
src/tag/Generic.cxx src/tag/Generic.hxx
\
src/tag/Id3MusicBrainz.cxx src/tag/Id3MusicBrainz.hxx
\
src/tag/ApeLoader.cxx src/tag/ApeLoader.hxx
\
src/tag/ApeReplayGain.cxx src/tag/ApeReplayGain.hxx
\
src/tag/ApeTag.cxx src/tag/ApeTag.hxx
...
...
src/tag/Id3MusicBrainz.cxx
0 → 100644
View file @
573a413e
/*
* Copyright 2003-2017 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "Id3MusicBrainz.hxx"
#include "TagTable.hxx"
#include "TagType.h"
const
struct
tag_table
musicbrainz_txxx_tags
[]
=
{
{
"ALBUMARTISTSORT"
,
TAG_ALBUM_ARTIST_SORT
},
{
"MusicBrainz Artist Id"
,
TAG_MUSICBRAINZ_ARTISTID
},
{
"MusicBrainz Album Id"
,
TAG_MUSICBRAINZ_ALBUMID
},
{
"MusicBrainz Album Artist Id"
,
TAG_MUSICBRAINZ_ALBUMARTISTID
},
{
"MusicBrainz Track Id"
,
TAG_MUSICBRAINZ_TRACKID
},
{
"MusicBrainz Release Track Id"
,
TAG_MUSICBRAINZ_RELEASETRACKID
},
{
nullptr
,
TAG_NUM_OF_ITEM_TYPES
}
};
src/tag/Id3MusicBrainz.hxx
0 → 100644
View file @
573a413e
/*
* Copyright 2003-2017 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_TAG_ID3MUSICBRAINZ_HXX
#define MPD_TAG_ID3MUSICBRAINZ_HXX
extern
const
struct
tag_table
musicbrainz_txxx_tags
[];
#endif
src/tag/TagId3.cxx
View file @
573a413e
...
...
@@ -20,6 +20,7 @@
#include "config.h"
#include "TagId3.hxx"
#include "Id3Load.hxx"
#include "Id3MusicBrainz.hxx"
#include "TagHandler.hxx"
#include "TagTable.hxx"
#include "TagBuilder.hxx"
...
...
@@ -205,19 +206,8 @@ gcc_pure
static
TagType
tag_id3_parse_txxx_name
(
const
char
*
name
)
noexcept
{
static
constexpr
struct
tag_table
txxx_tags
[]
=
{
{
"ALBUMARTISTSORT"
,
TAG_ALBUM_ARTIST_SORT
},
{
"MusicBrainz Artist Id"
,
TAG_MUSICBRAINZ_ARTISTID
},
{
"MusicBrainz Album Id"
,
TAG_MUSICBRAINZ_ALBUMID
},
{
"MusicBrainz Album Artist Id"
,
TAG_MUSICBRAINZ_ALBUMARTISTID
},
{
"MusicBrainz Track Id"
,
TAG_MUSICBRAINZ_TRACKID
},
{
"MusicBrainz Release Track Id"
,
TAG_MUSICBRAINZ_RELEASETRACKID
},
{
nullptr
,
TAG_NUM_OF_ITEM_TYPES
}
};
return
tag_table_lookup
(
txxx_tags
,
name
);
return
tag_table_lookup
(
musicbrainz_txxx_tags
,
name
);
}
/**
...
...
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