jaimeMF / youtube-dl-api-server

A youtube-dl REST API server
https://youtube-dl-api-server.readthedocs.org/
The Unlicense
364 stars 214 forks source link

Support for subtitles? #32

Closed ping closed 9 years ago

ping commented 9 years ago

Are subtitles supported? For example https://www.youtube.com/watch?v=XJGiS83eQLk has subtitles

$ youtube-dl --skip-download --write-sub "https://www.youtube.com/watch?v=XJGiS83eQLk"
[youtube] XJGiS83eQLk: Downloading webpage
[youtube] XJGiS83eQLk: Extracting video information
[youtube] XJGiS83eQLk: Downloading DASH manifest
[info] Writing video subtitles to: Creating Subtitles and Closed Captions on Your Youtube Videos-XJGiS83eQLk.en.srt

but with the api, it returns

      "requested_subtitles": null, 
      "subtitles": {}, 

Also, any chance of passing in user params for subtitles?

jaimeMF commented 9 years ago

You can use now &writesubtitles=true, thanks for the report.