obra / Youtube2Webpage

I learn much better from text than from videos
MIT License
763 stars 25 forks source link

add the option to choose subtitle language #9

Open christiansievers opened 1 year ago

christiansievers commented 1 year ago

Thanks for the very useful tool! One idea: Your script could be English by default, and use other languages when needed.

It would be great if your script could let me add (i.e.) - lang=cn to the command line, adding --sub-lang=cn to the yt-dlp command. So that the resulting html file uses the language specified.

TenoTrash commented 1 year ago

This will be a very nice option! Cheers from Argentina

obra commented 1 year ago

I'd happily take a PR for this

TenoTrash commented 1 year ago

I made some modifications to add llanguage option at the end of the command line. Maybe adding a default US language later? Cheers!