Skip to content

Commit

Permalink
增加跳过封面下载功能
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Sep 18, 2021
1 parent cb344b0 commit c81bcfb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BBDown/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class MyOption
public bool Debug { get; set; }
public bool SkipMux { get; set; }
public bool SkipSubtitle { get; set; }
public bool SkipCover { get; set; }
public string SelectPage { get; set; } = "";
public string Language { get; set; } = "";
public string Cookie { get; set; } = "";
Expand Down Expand Up @@ -148,6 +149,9 @@ public static int Main(params string[] args)
new Option<bool>(
new string[]{ "--skip-subtitle"},
"跳过字幕下载"),
new Option<bool>(
new string[]{ "--skip-cover"},
"跳过封面下载"),
new Option<string>(
new string[]{ "--language"},
"设置混流的音频语言(代码),如chi, jpn等"),
Expand Down Expand Up @@ -319,6 +323,7 @@ private static async Task DoWorkAsync(MyOption myOption)
bool subOnly = myOption.SubOnly;
bool skipMux = myOption.SkipMux;
bool skipSubtitle = myOption.SkipSubtitle;
bool skipCover = myOption.SkipCover;
bool showAll = myOption.ShowAll;
bool useAria2c = myOption.UseAria2c;
string aria2cProxy = myOption.Aria2cProxy;
Expand Down Expand Up @@ -502,7 +507,7 @@ private static async Task DoWorkAsync(MyOption myOption)
{
Directory.CreateDirectory(p.aid);
}
if (!subOnly && !File.Exists($"{p.aid}/{p.aid}.jpg"))
if (!skipCover && !subOnly && !File.Exists($"{p.aid}/{p.aid}.jpg"))
{
Log("下载封面...");
LogDebug("下载:{0}", pic);
Expand Down

0 comments on commit c81bcfb

Please sign in to comment.