Skip to content

Commit

Permalink
docs(example): update captions.js with more formats
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Aug 25, 2020
1 parent 8633393 commit fb18182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
*.xml
*.vtt
*.ttml
*.srv*
2 changes: 1 addition & 1 deletion example/captions.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ytdl = require('..');
const id = 'https://www.youtube.com/watch?v=QRS8MkLhQmM';
const lang = 'en';

// Can be xml, ttml, vtt
// Can be xml, ttml, vtt, srv1, srv2, srv3
const format = 'xml';

ytdl.getInfo(id).then(info => {
Expand Down

0 comments on commit fb18182

Please sign in to comment.