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

Commit

Permalink
Fixed typo & removed redundant line
Browse files Browse the repository at this point in the history
Replace typo: mafBuffer => maxBuffer. 
Removed line 205 which is no longer relevant since Line 16 already sets the default to be well above the requested amount.
  • Loading branch information
telno authored Feb 4, 2019
1 parent 05048b3 commit 156bbd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const util = require('./util');

const TEN_MEGABYTES = 1000 * 1000 * 10;

const execFileOpts = { mafBuffer: TEN_MEGABYTES }
const execFileOpts = { maxBuffer: TEN_MEGABYTES }

const detailsPath = path.join(__dirname, '..', 'bin/details')

Expand Down Expand Up @@ -202,7 +202,6 @@ function call(urls, args1, args2, options = {}, callback) {
// Get possible IDs for youtu.be from urladdr.
id = details.pathname.slice(1).replace(/^v\//, '');
if (id) {
if ((id === 'playlist') && !options.maxBuffer) { options.maxBuffer = 7000 * 1024; }
args.push(video);
args.unshift('-i');
}
Expand Down

0 comments on commit 156bbd5

Please sign in to comment.