Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Document how to increase buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrop authored Jul 25, 2017
1 parent 25ed267 commit 3bb3e4d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,19 @@ downloader('path/to-binary', function error(err, done) {
});
```

### Increase buffer size
As explained [in this issue](https://github.com/przemyslawpluta/node-youtube-dl/issues/128) if you get `Error: stdout maxBuffer exceeded` you can add `maxBuffer: Infinity` to the options like in the example below

```
var video = youtubedl('http://www.youtube.com/watch?v=0h-qh9flX2A',
['-f=best'],
{
cwd: __dirname,
maxBuffer: Infinity
})
```


### Tests
Tests are written with [vows](http://vowsjs.org/)

Expand Down

0 comments on commit 3bb3e4d

Please sign in to comment.