Skip to content

Commit

Permalink
优化Init文件加密判断 (#562)
Browse files Browse the repository at this point in the history
兼容了非标准的m3u8, 详情请看issue #550
  • Loading branch information
nilaoda authored Dec 16, 2024
1 parent ea9de55 commit 1a52a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace N_m3u8DL_RE.CommandLine;

internal static partial class CommandInvoker
{
public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20241203";
public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20241216";

[GeneratedRegex("((best|worst)\\d*|all)")]
private static partial Regex ForStrRegex();
Expand Down
2 changes: 1 addition & 1 deletion src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private async Task<bool> DownloadStreamAsync(StreamSpec streamSpec, ProgressTask
// 从文件读取KEY
await SearchKeyAsync(currentKID);
// 实时解密
if (streamSpec.Playlist.MediaInit.IsEncrypted && DownloaderConfig.MyOptions.MP4RealTimeDecryption && !string.IsNullOrEmpty(currentKID) && StreamExtractor.ExtractorType != ExtractorType.MSS)
if ((streamSpec.Playlist.MediaInit.IsEncrypted || currentKID?.Length > 0) && DownloaderConfig.MyOptions.MP4RealTimeDecryption && !string.IsNullOrEmpty(currentKID) && StreamExtractor.ExtractorType != ExtractorType.MSS)
{
var enc = result.ActualFilePath;
var dec = Path.Combine(Path.GetDirectoryName(enc)!, Path.GetFileNameWithoutExtension(enc) + "_dec" + Path.GetExtension(enc));
Expand Down

0 comments on commit 1a52a7a

Please sign in to comment.