Two fixes for captions downloads: 1. Language variant fallback: When user requests 'en' but the video only has 'en-GB' (or other regional variants), yt-dlp silently skips subtitle extraction because it uses exact language matching. Now the subtitleslangs list includes common regional variants (e.g. en-US, en-GB, en-AU, etc.) so yt-dlp can match the first available variant. 2. Error on no files: When yt-dlp completes successfully (ret=0) but produces no subtitle files (e.g. no matching language at all), the download was incorrectly shown as 'completed'. Now it's marked as 'error' with a descriptive message like 'No subtitles found for language "en"'. Same treatment for thumbnail downloads. |
||
|---|---|---|
| .. | ||
| tests | ||
| dl_formats.py | ||
| main.py | ||
| state_store.py | ||
| subscriptions.py | ||
| ytdl.py | ||