From 3b901afd6296c82e18bc14c33ec706022004366f Mon Sep 17 00:00:00 2001 From: nilaoda Date: Tue, 20 Dec 2022 11:50:15 +0800 Subject: [PATCH] =?UTF-8?q?shaka=E8=A7=A3=E5=AF=86bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/N_m3u8DL-RE.csproj | 2 +- src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj b/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj index 56497e9..e9274da 100644 --- a/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj +++ b/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj @@ -7,7 +7,7 @@ enable preview enable - 0.1.5.1 + 0.1.5.2 AnyCPU;x64 diff --git a/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs b/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs index e715bda..99b8f3b 100644 --- a/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs +++ b/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs @@ -47,7 +47,7 @@ namespace N_m3u8DL_RE.Util } cmd = $"--quiet --enable_raw_key_decryption input=\"{enc}\",stream=0,output=\"{dest}\" " + - $"--keys {(trackId != null ? $"label={trackId}:" : "")}key_id={ZeroKid}:key={keyPair.Split(':')[1]}"; + $"--keys {(trackId != null ? $"label={trackId}:" : "")}key_id={(trackId != null ? ZeroKid : kid)}:key={keyPair.Split(':')[1]}"; } else {