Skip to content

Commit

Permalink
Fix issue raawaa#3
Browse files Browse the repository at this point in the history
  • Loading branch information
raawaa committed Nov 3, 2015
1 parent 3c62f3c commit e5d613a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jav.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var pageIndex = 1;
var currentPageHtml = null;

program
.version('0.3.2')
.version('0.3.3')
.usage('[options]')
.option('-p, --parallel <num>', '设置抓取并发连接数,默认值:2', 2)
.option('-t, --timeout <num>', '自定义连接超时时间(毫秒)。默认值:10000')
Expand Down Expand Up @@ -244,6 +244,7 @@ function getItemMagnet(link, meta, done) {
// 若存在高清磁链,则优先选取高清磁链
anchor = HDAnchor || anchor;
if (anchor) {
mkdirp.sync(path.dirname(output)); // fix issue #3若若
fs.appendFile(output, anchor + '\r\n', function(err) {
if (err) {
throw err;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jav-scarpy",
"version": "0.3.2",
"version": "0.3.3",
"description": "",
"main": "jav.js",
"repository":
Expand Down

0 comments on commit e5d613a

Please sign in to comment.