Release 1.0.0.3: fix artist wrapper and lyrics fallback
This commit is contained in:
1 parent
16515c5166
commit
84e3ea34c8
10 files changed
+92
-13
No files matched your search
@@ -164,6 +164,13 @@ public class YandexMusicLyricProvider : ILyricProvider, IHasOrder
|
||||
}
|
||||
}
|
||||
|
||||
var supplement = await _client.GetSupplementLyricsAsync(trackId, cancellationToken).ConfigureAwait(false);
|
||||
if (!string.IsNullOrWhiteSpace(supplement))
|
||||
{
|
||||
Cache[trackId] = (supplement, "txt", DateTime.UtcNow);
|
||||
return (supplement, "txt");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user