修复偶发无法读取KID的场景

This commit is contained in:
nilaoda 2023-04-05 23:53:39 +08:00
parent 6bc4e7c861
commit 3675fe5bbe
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ namespace N_m3u8DL_RE.CommandLine
{
internal partial class CommandInvoker
{
public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20230323";
public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20230405";
[GeneratedRegex("((best|worst)\\d*|all)")]
private static partial Regex ForStrRegex();

View File

@ -45,7 +45,7 @@ namespace N_m3u8DL_RE.DownloadManager
private string? ReadInit(string output)
{
var header = new byte[4096]; //4KB
var header = new byte[1 * 1024 * 1024]; //1MB
using (var fs = File.OpenRead(output))
{
fs.Read(header);