From f96d77d37d9d13b35cacc72d73e09e15997beadd Mon Sep 17 00:00:00 2001 From: nilaoda Date: Thu, 8 Jun 2023 15:38:41 +0800 Subject: [PATCH] Fix #610 --- BBDown/Program.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/BBDown/Program.cs b/BBDown/Program.cs index 63cd4fd6c..bc4b91397 100644 --- a/BBDown/Program.cs +++ b/BBDown/Program.cs @@ -657,13 +657,6 @@ private static async Task DoWorkAsync(MyOption myOption) } } - if (coverOnly) - { - var newCoverPath = savePath[..savePath.LastIndexOf('.')] + Path.GetExtension(pic); - await DownloadCoverAsync(pic, p, newCoverPath); - continue; - } - if (interactMode && !hideStreams && !selected) { if (videoTracks.Count > 0) @@ -689,6 +682,14 @@ private static async Task DoWorkAsync(MyOption myOption) savePath = FormatSavePath(savePathFormat, title, videoTracks.ElementAtOrDefault(vIndex), audioTracks.ElementAtOrDefault(aIndex), p, pagesCount, tvApi, appApi, intlApi); LogDebug("Format After: " + savePath); + if (coverOnly) + { + var newCoverPath = savePath[..savePath.LastIndexOf('.')] + Path.GetExtension(pic); + await DownloadCoverAsync(pic, p, newCoverPath); + if (Directory.Exists(p.aid) && Directory.GetFiles(p.aid).Length == 0) Directory.Delete(p.aid, true); + continue; + } + Log($"已选择的流:"); if (videoTracks.Count > 0) {