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

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Nov 23, 2014
1 parent 0d013bc commit 916e8da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ var ytdl = module.exports = function(url, args, options) {
return;
}

item.size = parseInt(res.headers['content-length'], 10);
var size = parseInt(res.headers['content-length'], 10);
if (size) {
item.size = size;
}
stream.emit('info', item);
});
stream.resolve(req);
Expand Down Expand Up @@ -225,7 +228,8 @@ ytdl.getInfo = function(url, args, options, callback) {
};


var formatsRegex = /^(\d+)\s+([a-z0-9]+)\s+(\d+x\d+|\d+p|audio only|\?x\d+|unknown)/;
var formatsRegex =
/^(\d+)\s+([a-z0-9]+)\s+(\d+x\d+|\d+p|audio only|\?x\d+|unknown)/;

/**
* @param {String} url
Expand Down

0 comments on commit 916e8da

Please sign in to comment.