Auto stash before merge of "lyric-lrc-file-support" and "origin/lyric-lrc-file-support"

This commit is contained in:
1hitsong
2022-09-15 19:45:26 -04:00
parent 7520a19985
commit d9be3874ba
14 changed files with 173 additions and 190 deletions

View File

@@ -13,6 +13,7 @@ using MediaBrowser.Controller.Dto;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Lyrics;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
@@ -414,8 +415,8 @@ namespace Jellyfin.Api.Controllers
return NotFound();
}
// Super nieve implementation. I would suggest building a lyric service of some sort and doing this there.
foreach (var provider in _lyricProviders)
var result = MediaBrowser.Controller.Lyrics.LyricInfo.GetLyricData(_lyricProviders, item);
if (result is not null)
{
provider.Process(item);
if (provider.HasData)