mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
youtube-dl: add subtitle options (#3992)
This commit is contained in:
parent
dd65221a63
commit
96cf62bc25
1 changed files with 4 additions and 4 deletions
|
@ -27,10 +27,10 @@
|
|||
|
||||
`youtube-dl --format {{mp4}} -o {{"%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s"}} {{url}}`
|
||||
|
||||
- Download a video and save its description, metadata, annotations, subtitles, and thumbnail:
|
||||
- List available subtitles:
|
||||
|
||||
`youtube-dl --write-description --write-info-json --write-annotations --write-sub --write-thumbnail {{url}}`
|
||||
`youtube-dl --list-subs {{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}`
|
||||
|
||||
- From a playlist, download all "Let's Play" videos that aren't marked "NSFW" or age-restricted for 7 year-olds:
|
||||
- Download a particular language's subtitles along with the video:
|
||||
|
||||
`youtube-dl --match-title {{"let's play"}} --age-limit {{7}} --reject-title {{"nsfw"}} {{playlist_url}}`
|
||||
`youtube-dl --sub-lang {{en}} --write-sub {{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue