From e7cc0d506fd49da6e1d23826b859a2146b3627f1 Mon Sep 17 00:00:00 2001 From: Roly Fentanes Date: Fri, 8 May 2015 21:33:09 -0400 Subject: [PATCH] store example videos in dir to keep things cleaner --- example/download.js | 2 +- example/playlist.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/example/download.js b/example/download.js index eb87047..2fb5d9d 100644 --- a/example/download.js +++ b/example/download.js @@ -13,7 +13,7 @@ video.on('info', function(info) { size = info.size; console.log('Got video info'); console.log('saving to ' + info._filename); - var output = path.join(__dirname, info._filename); + var output = path.join(__dirname, 'videos', info._filename); video.pipe(fs.createWriteStream(output)); }); diff --git a/example/playlist.js b/example/playlist.js index 42b34dd..281a54d 100644 --- a/example/playlist.js +++ b/example/playlist.js @@ -2,7 +2,6 @@ var path = require('path'); var fs = require('fs'); var ytdl = require('..'); -/* jshint maxlen:false */ var video = ytdl('https://www.youtube.com/playlist?list=PLEFA9E9D96CB7F807'); video.on('error', function(err) { @@ -12,7 +11,7 @@ video.on('error', function(err) { var size = 0; video.on('info', function(info) { size = info.size; - var output = path.join(__dirname + '/mp4s', size + '.mp4'); + var output = path.join(__dirname + '/videos', size + '.mp4'); video.pipe(fs.createWriteStream(output)); });