mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-06 22:32:57 +01:00
Resolve Azure build issues
This commit is contained in:
@@ -87,7 +87,12 @@ public class LrcLyricProvider : ILyricProvider
|
||||
|
||||
for (int i = 0; i < sortedLyricData.Count; i++)
|
||||
{
|
||||
var timeData = sortedLyricData[i].TimeTags.ToArray()[0].Value;
|
||||
var timeData = sortedLyricData[i].TimeTags.First().Value;
|
||||
if (timeData is null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
long ticks = TimeSpan.FromMilliseconds((double)timeData).Ticks;
|
||||
lyricList.Add(new Controller.Lyrics.Lyric(sortedLyricData[i].Text, ticks));
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class LyricManager : ILyricManager
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public LyricResponse GetLyrics(BaseItem item)
|
||||
public LyricResponse? GetLyrics(BaseItem item)
|
||||
{
|
||||
foreach (ILyricProvider provider in _lyricProviders)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user