Skip to content

Commit

Permalink
设置进度条 AutoRefresh
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Oct 14, 2023
1 parent e0ba6ac commit a7bba3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/N_m3u8DL-RE/DownloadManager/HTTPLiveRecordManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public async Task<bool> StartRecordAsync()
ConcurrentDictionary<StreamSpec, bool?> Results = new();

var progress = AnsiConsole.Progress().AutoClear(true);
progress.AutoRefresh = DownloaderConfig.MyOptions.LogLevel != LogLevel.OFF;

//进度条的列定义
progress.Columns(new ProgressColumn[]
Expand Down
1 change: 1 addition & 0 deletions src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ public async Task<bool> StartDownloadAsync()
ConcurrentDictionary<StreamSpec, bool?> Results = new();

var progress = AnsiConsole.Progress().AutoClear(true);
progress.AutoRefresh = DownloaderConfig.MyOptions.LogLevel != LogLevel.OFF;

//进度条的列定义
progress.Columns(new ProgressColumn[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ public async Task<bool> StartRecordAsync()
}*/

var progress = AnsiConsole.Progress().AutoClear(true);
progress.AutoRefresh = DownloaderConfig.MyOptions.LogLevel != LogLevel.OFF;

//进度条的列定义
progress.Columns(new ProgressColumn[]
Expand Down

0 comments on commit a7bba3d

Please sign in to comment.