1
mirror of https://github.com/nilaoda/N_m3u8DL-CLI synced 2025-09-15 02:00:49 +02:00

Compare commits

...

1 Commits
2.4.3 ... 2.4.4

Author SHA1 Message Date
nilaoda
086fc57958 修复解析bug;增加杜比视界识别场景 2019-12-18 09:15:42 +08:00
4 changed files with 19 additions and 4 deletions

View File

@@ -152,6 +152,7 @@ namespace N_m3u8DL_CLI
//开始调用下载
LOGGER.WriteLine("Start Downloading");
LOGGER.PrintLine("开始下载文件", LOGGER.Warning);
//下载MAP文件若有
try
{
@@ -225,6 +226,8 @@ namespace N_m3u8DL_CLI
if (Global.HadReadInfo == false)
{
string href = DownDir + "\\Part_" + 0.ToString(partsPadZero) + "\\" + firstSeg["index"].Value<int>().ToString(segsPadZero) + ".ts";
if (File.Exists(DownDir + "\\!MAP.ts"))
href = DownDir + "\\!MAP.ts";
Global.GzipHandler(href);
bool flag = false;
foreach (string ss in (string[])Global.GetVideoInfo(href).ToArray(typeof(string)))
@@ -521,7 +524,7 @@ namespace N_m3u8DL_CLI
FFmpeg.OutPutPath = Path.Combine(Directory.GetParent(DownDir).FullName, DownName);
FFmpeg.ReportFile = driverName + "\\:" + exePath.Remove(0, exePath.IndexOf(':') + 1).Replace("\\", "/") + "/Logs/" + Path.GetFileNameWithoutExtension(LOGGER.LOGFILE) + fflogName;
//合并分段
LOGGER.PrintLine("合并分段中...");
for (int i = 0; i < PartsCount; i++)

View File

@@ -30,8 +30,8 @@ namespace N_m3u8DL_CLI
/*===============================================================================*/
static string nowVer = "2.4.2";
static string nowDate = "20191216";
static string nowVer = "2.4.3";
static string nowDate = "20191218";
public static void WriteInit()
{
Console.Clear();
@@ -709,6 +709,14 @@ namespace N_m3u8DL_CLI
{
VIDEO_TYPE = "DV";
}
else if (res.Contains("Video hevc (Main 10) (dvh1")) //优酷视频杜比视界
{
VIDEO_TYPE = "DV";
}
else if (res.Contains("Video hevc (dvh1")) //优酷视频杜比视界
{
VIDEO_TYPE = "DV";
}
else if (res.Contains("Video h264"))
{
VIDEO_TYPE = "H264";

View File

@@ -279,7 +279,8 @@ namespace N_m3u8DL_CLI
//m3u8主体结束
else if (line.StartsWith(HLSTags.ext_x_endlist))
{
parts.Add(segments);
if (segments.Count > 0)
parts.Add(segments);
segments = new JArray();
isEndlist = true;
}

View File

@@ -207,6 +207,9 @@ namespace N_m3u8DL_CLI.NetCore
/// - 完善芒果TV请求头的自动添加
/// 2019年12月16日
/// - 处理文件名特殊字符
/// 2019年12月18日
/// - 修复m3u8解析bug导致的无法合并问题
/// - 增加杜比视界识别场景
/// </summary>
///