Pārlūkot izejas kodu

Try to add extracted lyrics during scanning

The extraction process does not add the extracted lyrics to the audio media streams. Try to add it when tryExtractEmbeddedLyrics is true.

Signed-off-by: gnattu <gnattuoc@me.com>
gnattu 1 gadu atpakaļ
vecāks
revīzija
31237f778a
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

+ 4 - 0
MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

@@ -136,6 +136,10 @@ namespace MediaBrowser.Providers.MediaInfo
             if (!audio.IsLocked)
             {
                 await FetchDataFromTags(audio, mediaInfo, options, tryExtractEmbeddedLyrics).ConfigureAwait(false);
+                if (tryExtractEmbeddedLyrics)
+                {
+                    AddExternalLyrics(audio, mediaStreams, options);
+                }
             }
 
             audio.HasLyrics = mediaStreams.Any(s => s.Type == MediaStreamType.Lyric);