Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't extract more than one sub track per language unless overwrite/force is enabled #117

Open
guiweber opened this issue Dec 4, 2024 · 1 comment

Comments

@guiweber
Copy link

guiweber commented Dec 4, 2024

Tested on V 0.1.11

When launching via CLI with option --all, only the "regular" sub track for a language is extracted even if the file has multiple sub tracks of the same language (forced, sdh). Launching with -a yields the same result. Specifying languages or not doesn't change anything. However, if the -f flag is added, then more than one track for the same language are extracted.

The issue also happens when using the API. Setting one_per_lang=False has no effect unless configuring overwrite=True.

@guiweber
Copy link
Author

guiweber commented Dec 4, 2024

After playing a bit more with the API, I noticed that the issue also happens with the API if "overwrite=False" (tested without any .srt files already present in the directory).

Works:
options = Options(languages={"en"}, overwrite=True, one_per_lang=False)

Doesn't work:
options = Options(languages={"en"}, overwrite=False, one_per_lang=False)

Also confirmed that adding -f in the CLI makes it work. Updated the main issue description.

@guiweber guiweber changed the title --all option doesn't work via CLI Can't extract more than one sub track per language unless overwrite/force is enabled Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant