优化KEY搜索
This commit is contained in:
parent
658efdfb00
commit
a89387b4f6
|
@ -86,7 +86,7 @@ namespace N_m3u8DL_RE.Util
|
||||||
using var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read);
|
using var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||||
using var reader = new StreamReader(stream);
|
using var reader = new StreamReader(stream);
|
||||||
var line = "";
|
var line = "";
|
||||||
while (!string.IsNullOrEmpty(line = await reader.ReadLineAsync()))
|
while ((line = await reader.ReadLineAsync()) != null)
|
||||||
{
|
{
|
||||||
if (line.Trim().StartsWith(kid))
|
if (line.Trim().StartsWith(kid))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue