Skip to content

Commit

Permalink
Fix #610
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Jun 8, 2023
1 parent 4628c8b commit f96d77d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions BBDown/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
{
Expand Down

0 comments on commit f96d77d

Please sign in to comment.