Add archive --skip-existing-method flag (#292) (#325)

* Add archive `--skip-existing-method` flag (#292)

* Fix re-download only issued when local file has more audios/subtitles & respect `--no-closed-captions` flag
This commit is contained in:
bytedream 2024-02-25 18:48:18 +01:00 committed by GitHub
parent 6a7aa25e1a
commit 5634ce3277
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 139 additions and 13 deletions

View file

@ -94,7 +94,7 @@ pub struct Download {
#[arg(long)]
pub(crate) ffmpeg_threads: Option<usize>,
#[arg(help = "Skip files which are already existing")]
#[arg(help = "Skip files which are already existing by their name")]
#[arg(long, default_value_t = false)]
pub(crate) skip_existing: bool,
#[arg(help = "Skip special episodes")]
@ -259,7 +259,7 @@ impl Execute for Download {
self.output_specials
.as_ref()
.map_or((&self.output).into(), |so| so.into()),
self.universal_output,
self.universal_output,
)
} else {
format.format_path((&self.output).into(), self.universal_output)