yt-dlp: Check for new subtitles, don't overwrite when downloaded

Checklist

Question

I have a question about checking for new subtitles - apologies is this is already stated in the README, but I couldn’t find it.

I would like to download a video as soon as possible, whether or not subtitles have been added yet. When subtitles are added, I would like to downloading them as well, but have the same output name. The output name has %(upload_date)s, which I would like to be the same for the video and subtitles, even if they aren’t uploaded on the same date. Is there any way to accomplish this?

Caveat: Once the video/subtitles are downloaded, I don’t want them to be changed (even it they’re updated from the uploader)

Here’s the my current config.txt:

-i ...
-f 'bestvideo+bestaudio'
--merge-output-format mp4
--output "%(upload_date)s - %(uploader)s - %(title)s"

--add-metadata
--embed-thumbnail

--write-sub
--sub-lang en,en-us,en_us,en-US,en_US
--convert-subs vtt

Thank you for your time.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

The output name has %(upload_date)s, which I would like to be the same for the video and subtitles, even if they aren’t uploaded on the same date. Is there any way to accomplish this?

This is already the case. upload_date always points to the video’s upload date, not the subtitle’s

Caveat: Once the video/subtitles are downloaded, I don’t want them to be changed (even it they’re updated from the uploader)

--no-overwrite