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

Commit

Permalink
update where youtube-dl is downloaded from
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed May 17, 2013
1 parent 1fbfb00 commit dfe6234
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/download.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var fs = require('fs')
, path = require('path')
, existsSync = fs.existsSync || path.existsSync
, https = require('https')
, http = require('http')
;


Expand All @@ -16,10 +16,10 @@ if (!existsSync(dir)) {
fs.mkdirSync(dir, 484);
}

// download latst version of youtube-dl
https.get({
host: 'raw.github.com'
, path: '/rg3/youtube-dl/master/youtube-dl'
// download youtube-dl
http.get({
host: 'youtube-dl.org'
, path: '/downloads/2013.05.14/youtube-dl'
}, function(res) {
if (res.statusCode !== 200) {
throw Error('Response Error: ' + res.statusCode);
Expand Down

0 comments on commit dfe6234

Please sign in to comment.