mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-10 20:26:17 +00:00
Save recording MBID during probing
This commit is contained in:
@@ -355,6 +355,12 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
}
|
||||
}
|
||||
|
||||
if (options.ReplaceAllMetadata || !audio.TryGetProviderId(MetadataProvider.MusicBrainzRecording, out _))
|
||||
{
|
||||
// As mentioned above, `tags.MusicBrainzTrackId` provides the recording MBID.
|
||||
audio.SetProviderId(MetadataProvider.MusicBrainzRecording, tags.MusicBrainzTrackId);
|
||||
}
|
||||
|
||||
// Save extracted lyrics if they exist,
|
||||
// and if the audio doesn't yet have lyrics.
|
||||
var lyrics = track.Lyrics.SynchronizedLyrics.Count > 0 ? track.Lyrics.FormatSynchToLRC() : track.Lyrics.UnsynchronizedLyrics;
|
||||
|
||||
Reference in New Issue
Block a user