Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

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

Merged
merged 2 commits into from
Feb 25, 2024

Conversation

bytedream
Copy link
Member

This PR adds the --skip-existing-method flag to archive.

By default, when specifying --skip-existing and downloading an episode and the file to which the episode gets downloaded already exists, the download of this episode is skipped. But in some cases this is not the desired behavior, e.g. when an audio or subtitle language got added. To make this a bit more flexible, the --skip-existing-method is added. It can take audio and/or subtitle as argument. If given, it checks if the already downloaded file (is a video and) has different audio/subtitle languages than the one you want to download. If this is the case, the episode will be downloaded instead of being skipped and replaces the already existing file.

@bytedream bytedream linked an issue Feb 1, 2024 that may be closed by this pull request
@h0m3us3r
Copy link

Wouldn't it only redownload the file if local has more audio/subs than requested/available?

@bytedream
Copy link
Member Author

bytedream commented Feb 23, 2024

Wouldn't it only redownload the file if local has more audio/subs than requested/available?

Haha yes, my bad. Fixed it

@bytedream bytedream merged commit 5634ce3 into master Feb 25, 2024
5 of 10 checks passed
@bytedream bytedream deleted the feature/skip-existing-method branch February 25, 2024 17:48
@KoffeinKaio
Copy link

can this only be used to download newer versions depending on available audio OR subtitle?
do I have to run this twice to get both updated?

@bytedream
Copy link
Member Author

You can do both / specify the flag twice in one command

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Archive skip existing improvment
3 participants