设置进度条 AutoRefresh

https://github.com/nilaoda/N_m3u8DL-RE/issues/162#issuecomment-1761716690
This commit is contained in:
nilaoda 2023-10-15 00:04:01 +08:00
parent e0ba6acd60
commit a7bba3d229
4 changed files with 4 additions and 1 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) 20230820";
public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20231015";
[GeneratedRegex("((best|worst)\\d*|all)")]
private static partial Regex ForStrRegex();

View File

@ -198,6 +198,7 @@ namespace N_m3u8DL_RE.DownloadManager
ConcurrentDictionary<StreamSpec, bool?> Results = new();
var progress = AnsiConsole.Progress().AutoClear(true);
progress.AutoRefresh = DownloaderConfig.MyOptions.LogLevel != LogLevel.OFF;
//进度条的列定义
progress.Columns(new ProgressColumn[]

View File

@ -618,6 +618,7 @@ namespace N_m3u8DL_RE.DownloadManager
ConcurrentDictionary<StreamSpec, bool?> Results = new();
var progress = AnsiConsole.Progress().AutoClear(true);
progress.AutoRefresh = DownloaderConfig.MyOptions.LogLevel != LogLevel.OFF;
//进度条的列定义
progress.Columns(new ProgressColumn[]

View File

@ -802,6 +802,7 @@ namespace N_m3u8DL_RE.DownloadManager
}*/
var progress = AnsiConsole.Progress().AutoClear(true);
progress.AutoRefresh = DownloaderConfig.MyOptions.LogLevel != LogLevel.OFF;
//进度条的列定义
progress.Columns(new ProgressColumn[]