youwee icon indicating copy to clipboard operation
youwee copied to clipboard

Subtitle Auto mode ignores selected languages and uses `--sub-langs all`

Open palamars opened this issue 2 months ago • 1 comments

Problem

In the subtitle settings UI, Auto mode still allows selecting specific languages (for example EN and RU), and the UI shows them as selected.

However, downloads started with Auto mode currently invoke yt-dlp with:

--write-subs
--write-auto-subs
--sub-langs all

So the selected languages are ignored and Youwee attempts to download every available automatic subtitle / translated subtitle language.

This can quickly trigger YouTube rate limiting. Example failure:

Download failed (exit code 1): ERROR: Unable to download video subtitles for 'ab': HTTP Error 429: Too Many Requests

Example URL:

https://www.youtube.com/watch?v=h9RTe8-vmxo

In this case only EN and RU were selected in the UI, but yt-dlp still attempted language ab.

Expected behavior

If languages are explicitly selected in Auto mode, Youwee should pass only those languages, e.g.:

--write-subs
--write-auto-subs
--sub-langs en,ru

--sub-langs all should only be used when the user actually requests all languages.

Additional concern

A subtitle 429 currently causes the entire video download to fail. Ideally, failure to fetch one optional subtitle should not abort an otherwise valid media download.

palamars avatar Sep 06 '26 10:09 palamars

Fixed and update on v0.20.4

vanloctech avatar Sep 20 '26 15:09 vanloctech