修复偶发无法读取KID的场景
This commit is contained in:
parent
6bc4e7c861
commit
3675fe5bbe
|
@ -18,7 +18,7 @@ namespace N_m3u8DL_RE.CommandLine
|
||||||
{
|
{
|
||||||
internal partial class CommandInvoker
|
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)")]
|
[GeneratedRegex("((best|worst)\\d*|all)")]
|
||||||
private static partial Regex ForStrRegex();
|
private static partial Regex ForStrRegex();
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace N_m3u8DL_RE.DownloadManager
|
||||||
|
|
||||||
private string? ReadInit(string output)
|
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))
|
using (var fs = File.OpenRead(output))
|
||||||
{
|
{
|
||||||
fs.Read(header);
|
fs.Read(header);
|
||||||
|
|
Loading…
Reference in New Issue