From 51b7a8854c838421573e482e0cee1a9b7f34ead9 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 6 Mar 2020 19:07:06 +0100 Subject: [PATCH] [scan] Add support for MUSICBRAINZ_ALBUMID tag (fixes issue #914) --- src/library/filescanner_ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/library/filescanner_ffmpeg.c b/src/library/filescanner_ffmpeg.c index 1c9c42d6..d9e69075 100644 --- a/src/library/filescanner_ffmpeg.c +++ b/src/library/filescanner_ffmpeg.c @@ -167,6 +167,7 @@ static const struct metadata_map md_map_generic[] = // These tags are used to determine if files belong to a common compilation // or album, ref. https://picard.musicbrainz.org/docs/tags { "MusicBrainz Album Id", 1, mfi_offsetof(songalbumid), parse_albumid }, + { "MUSICBRAINZ_ALBUMID", 1, mfi_offsetof(songalbumid), parse_albumid }, { "MusicBrainz Release Group Id", 1, mfi_offsetof(songalbumid), parse_albumid }, { "MusicBrainz DiscID", 1, mfi_offsetof(songalbumid), parse_albumid }, { "CDDB DiscID", 1, mfi_offsetof(songalbumid), parse_albumid }, @@ -262,7 +263,7 @@ extract_metadata_core(struct media_file_info *mfi, AVDictionary *md, const struc /* Dump all the metadata reported by ffmpeg */ mdt = NULL; while ((mdt = av_dict_get(md, "", mdt, AV_DICT_IGNORE_SUFFIX)) != NULL) - fprintf(stderr, " -> %s = %s\n", mdt->key, mdt->value); + DPRINTF(E_DBG, L_SCAN, " -> %s = %s\n", mdt->key, mdt->value); #endif mdcount = 0;