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

Commit

Permalink
Remove commented old code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysalvat committed Apr 24, 2014
1 parent 864a526 commit 9804155
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,49 +143,6 @@ function filterData(data) {
* @param {Array.<String>} options
* @param {Function(!Error, Object)} callback
*/
// ytdl.getInfo = function(url, options, callback) {
// if (typeof options === 'function') {
// callback = options;
// options = [];
// }
// var args = [
// '--get-id',
// '--get-url',
// '--get-title',
// '--get-thumbnail',
// '--get-filename',
// '--get-format',
// '--get-description'
// ];

// call(url, args, options, function(err, data) {
// if (err) return callback(err);

// var playlist = [];

// var divideData = function divideData(data) {

// var arr = [];

// for (var i = 0; i < args.length; i++) {
// arr.push(data.shift());
// }

// playlist.push(filterData(arr));

// if (data.length) { divideData(data); }

// };

// if (data.length === args.length) { return callback(null, filterData(data)); }

// divideData(data);

// return callback(null, playlist);

// });
// };

ytdl.getInfo = function(url, options, callback) {
if (typeof options === 'function') {
callback = options;
Expand Down

0 comments on commit 9804155

Please sign in to comment.