diff --git a/src/N_m3u8DL-RE.Common/Util/GlobalUtil.cs b/src/N_m3u8DL-RE.Common/Util/GlobalUtil.cs index 7e50188..e535f53 100644 --- a/src/N_m3u8DL-RE.Common/Util/GlobalUtil.cs +++ b/src/N_m3u8DL-RE.Common/Util/GlobalUtil.cs @@ -35,6 +35,10 @@ namespace N_m3u8DL_RE.Common.Util { return JsonSerializer.Serialize(sList, Context.ListStreamSpec); } + else if (o is IEnumerable mList) + { + return JsonSerializer.Serialize(mList, Context.IEnumerableMediaSegment); + } return "{NOT SUPPORTED}"; } diff --git a/src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs b/src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs index 1225b25..32daac4 100644 --- a/src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs +++ b/src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs @@ -9,6 +9,7 @@ using Spectre.Console; using System; using System.Collections.Concurrent; using System.Collections.Generic; +using System.Data; using System.Diagnostics; using System.Linq; using System.Text; @@ -116,7 +117,7 @@ namespace N_m3u8DL_RE.Downloader catch (Exception ex) { Logger.WarnMarkUp($"[grey]{ex.Message.EscapeMarkup()} retryCount: {retryCount}[/]"); - Logger.Debug(ex.ToString()); + Logger.Debug(url + " " + ex.ToString()); if (retryCount-- > 0) { await Task.Delay(1000);