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

Commit

Permalink
Updating comment block for inline quotes, replacing double quotes wit…
Browse files Browse the repository at this point in the history
…h single quotes
  • Loading branch information
logikaljay committed Sep 13, 2015
1 parent 894e215 commit 1646cec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ var ytdl = module.exports = function(videoUrl, args, options) {

var item = (!data.length) ? data : data.shift();

/**
* Fix for pause/resume downloads
*/
// fix for pause/resume downloads
var headers = {
'Host': url.parse(item.url).hostname
};

if (options && options.start > 0) {
headers.Range = "bytes=" + options.start + "-";
headers.Range = 'bytes=' + options.start + '-';
}

var req = request({
Expand Down

0 comments on commit 1646cec

Please sign in to comment.