刷新异常时停止录制
This commit is contained in:
parent
b2f611e632
commit
02bf9e94a5
|
@ -133,5 +133,15 @@ namespace N_m3u8DL_RE.Common.Log
|
|||
HandleLog(write);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ErrorMarkUp(Exception exception)
|
||||
{
|
||||
string data = exception.Message.EscapeMarkup();
|
||||
if (LogLevel >= LogLevel.ERROR)
|
||||
{
|
||||
data = exception.ToString().EscapeMarkup();
|
||||
}
|
||||
ErrorMarkUp(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,8 +236,7 @@ namespace N_m3u8DL_RE.DownloadManager
|
|||
//读取mp4信息
|
||||
if (result != null && result.Success)
|
||||
{
|
||||
var data = File.ReadAllBytes(result.ActualFilePath);
|
||||
currentKID = ReadInit(data);
|
||||
currentKID = ReadInit(result.ActualFilePath);
|
||||
//从文件读取KEY
|
||||
await SearchKeyAsync(currentKID);
|
||||
//实时解密
|
||||
|
@ -677,6 +676,11 @@ namespace N_m3u8DL_RE.DownloadManager
|
|||
{
|
||||
//不需要做事
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.ErrorMarkUp(e);
|
||||
STOP_FLAG = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue