shaka解密bug修复

This commit is contained in:
nilaoda 2022-12-20 11:50:15 +08:00
parent b46af31f95
commit 3b901afd62
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
<Version>0.1.5.1</Version>
<Version>0.1.5.2</Version>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>

View File

@ -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
{