Merge pull request #1173 from Schtek/patch-1
MusicBrainz ids as Vorbis Comments
This commit is contained in:
commit
e9317f3cbc
|
@ -516,12 +516,25 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||||
FetchStudios(audio, tags, "label");
|
FetchStudios(audio, tags, "label");
|
||||||
|
|
||||||
// These support mulitple values, but for now we only store the first.
|
// These support mulitple values, but for now we only store the first.
|
||||||
audio.SetProviderId(MetadataProviders.MusicBrainzAlbumArtist, GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Album Artist Id")));
|
var mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Album Artist Id"));
|
||||||
audio.SetProviderId(MetadataProviders.MusicBrainzArtist, GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Artist Id")));
|
if(mb == null) mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MUSICBRAINZ_ALBUMARTISTID"));
|
||||||
|
audio.SetProviderId(MetadataProviders.MusicBrainzAlbumArtist, mb);
|
||||||
|
|
||||||
|
mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Artist Id"));
|
||||||
|
if(mb == null) mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MUSICBRAINZ_ARTISTID"));
|
||||||
|
audio.SetProviderId(MetadataProviders.MusicBrainzArtist, mb);
|
||||||
|
|
||||||
audio.SetProviderId(MetadataProviders.MusicBrainzAlbum, GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Album Id")));
|
mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Album Id"));
|
||||||
audio.SetProviderId(MetadataProviders.MusicBrainzReleaseGroup, GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Release Group Id")));
|
if(mb == null) mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MUSICBRAINZ_ALBUMID"));
|
||||||
audio.SetProviderId(MetadataProviders.MusicBrainzTrack, GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Release Track Id")));
|
audio.SetProviderId(MetadataProviders.MusicBrainzAlbum, mb);
|
||||||
|
|
||||||
|
mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Release Group Id"));
|
||||||
|
if(mb == null) mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MUSICBRAINZ_RELEASEGROUPID"));
|
||||||
|
audio.SetProviderId(MetadataProviders.MusicBrainzReleaseGroup, mb);
|
||||||
|
|
||||||
|
mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MusicBrainz Release Track Id"));
|
||||||
|
if(mb == null) mb = GetMultipleMusicBrainzId(FFProbeHelpers.GetDictionaryValue(tags, "MUSICBRAINZ_RELEASETRACKID"));
|
||||||
|
audio.SetProviderId(MetadataProviders.MusicBrainzTrack, mb);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetMultipleMusicBrainzId(string value)
|
private string GetMultipleMusicBrainzId(string value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user