add foramt chose for subtitlse
Some checks failed
Build on push and PRs / build (push) Failing after 5s
Automatic version updates / version_update (push) Failing after 7s

This commit is contained in:
2025-02-03 20:52:03 +03:00
parent 55e7486f50
commit 646859b4c1

View File

@ -492,7 +492,7 @@ func infoFromURL(
}
for _, caption := range info.AutomaticCaptions[lang] {
if caption.Ext != options.DownloadSubtitlesFormat {
if options.DownloadSubtitlesFormat != "" && caption.Ext != options.DownloadSubtitlesFormat {
continue
}
resp, respErr := get(caption.URL)