Skip to content

Commit 8157fbe

Browse files
committed
2.7.0
1 parent b0d3cd4 commit 8157fbe

File tree

4 files changed

+2659
-32
lines changed

4 files changed

+2659
-32
lines changed

lib/APISpec.js

+1-20
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,4 @@ describe('APISpec', function(){
8686
.catch(done);
8787

8888
});
89-
90-
it('.searchForTag()', function(done){
91-
92-
var API = require('./API');
93-
94-
API.login()
95-
.then(function(token){
96-
return API.searchForTag(token, 'eng', 'horror');
97-
})
98-
.then(function(results){
99-
100-
expect(results.length > 0)
101-
.to.be(true);
102-
103-
})
104-
.then(done)
105-
.catch(done);
106-
107-
});
108-
});
89+
});

lib/Downloader.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,19 @@ Downloader.prototype.download = function _download(results, limit, movieFile, on
6666
var scope = this;
6767
// download and extract the subtitle
6868
dest = fs.createWriteStream(downloadFileName);
69-
gunzip = zlib.createGunzip()
70-
req = request({url:subtitleToDownload, jar:true, followAllRedirects:true})
71-
req.pipe(gunzip).pipe(dest)
69+
gunzip = zlib.createGunzip();
70+
req = request({
71+
url:subtitleToDownload,
72+
jar:true,
73+
followAllRedirects:true
74+
});
75+
req.pipe(gunzip).pipe(dest);
7276
dest.on("close", function() {
7377
// emit downloaded event
7478
scope.emit.call(scope, "downloaded", { url: subtitleToDownload, file: downloadFileName});
7579
_download.call(scope, results, --limit, movieFile, onCompleted);
76-
})
77-
80+
});
7881
};
7982

8083

8184
module.exports = new Downloader();
82-

0 commit comments

Comments
 (0)