From 6ff05541ddee066ae885cba50c600e583c98b80b Mon Sep 17 00:00:00 2001 From: nilaoda Date: Thu, 11 Aug 2022 21:58:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=8A=B6=E5=86=B5=E4=B8=8B=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E6=94=AF=E6=8C=81Hi-Res=E9=9F=B3=E8=BD=A8=E7=9A=84=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBDown.Core/Parser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BBDown.Core/Parser.cs b/BBDown.Core/Parser.cs index 6a3724bf4..db671859d 100644 --- a/BBDown.Core/Parser.cs +++ b/BBDown.Core/Parser.cs @@ -179,7 +179,8 @@ private static async Task GetPlayJsonAsync(string aid, string cid, strin { if (hiRes.TryGetProperty("audio", out JsonElement db)) { - audio.Add(db); + if (db.ValueKind != JsonValueKind.Null) + audio.Add(db); } } }