From a89387b4f6f52a498ac3cb21124756dcace4d435 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Fri, 12 Aug 2022 19:41:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96KEY=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs b/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs index 218f7ad..7afe7db 100644 --- a/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs +++ b/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs @@ -86,7 +86,7 @@ namespace N_m3u8DL_RE.Util using var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read); using var reader = new StreamReader(stream); var line = ""; - while (!string.IsNullOrEmpty(line = await reader.ReadLineAsync())) + while ((line = await reader.ReadLineAsync()) != null) { if (line.Trim().StartsWith(kid)) {