mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
Adjust file read async functions
This commit is contained in:
parent
a50bdb4770
commit
97409adb45
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ public class LrcLyricProvider : ILyricProvider
|
|||
}
|
||||
|
||||
var fileMetaData = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
string lrcFileContent = await Task.FromResult(File.ReadAllText(lyricFilePath)).ConfigureAwait(false);
|
||||
string lrcFileContent = await File.ReadAllTextAsync(lyricFilePath).ConfigureAwait(false);
|
||||
|
||||
Song lyricData;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ public class TxtLyricProvider : ILyricProvider
|
|||
return null;
|
||||
}
|
||||
|
||||
string[] lyricTextLines = await Task.FromResult(File.ReadAllLines(lyricFilePath)).ConfigureAwait(false);
|
||||
string[] lyricTextLines = await File.ReadAllLinesAsync(lyricFilePath).ConfigureAwait(false);
|
||||
|
||||
if (lyricTextLines.Length == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue