Skip to content

Commit

Permalink
Add task publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Gatica committed Mar 12, 2015
1 parent d717963 commit 700e641
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Gulpfile.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict"

spawn = require("child_process").spawn
gulp = require "gulp"
plugins = require("gulp-load-plugins")()
yargs = require("yargs")
Expand Down Expand Up @@ -46,3 +47,8 @@ gulp.task "push-tags", ->
gulp.task "push", ->
plugins.git.push "origin", "master", (err) ->
throw err if err

gulp.task "publish", (done) ->
spawn "npm", ["publish"],
stdio: "inherit"
.on "close", done
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "anime-dl",
"version": "1.2.2",
"version": "1.2.4",
"description": "CLI for show and download anime from jkanime.net.",
"main": "lib",
"dependencies": {
"cheerio": "^0.18.0",
"inquirer": "^0.8.0",
"lodash": "^3.4.0",
"urllib": "^2.3.0",
"yargs": "^3.4.5"
"lodash": "^3.5.0",
"urllib": "^2.3.1",
"yargs": "^3.5.3"
},
"devDependencies": {
"coffee-script": "^1.9.1",
Expand Down
2 changes: 1 addition & 1 deletion src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ getUrlVideo = (animeUrl, chapter, cb) ->
ANIME.codeName = animeUrl.replace(url, "").replace("/", "")
ANIME.chapter = parseInt chapter, 10
try
value = $(".player_conte param")[19].attribs.value
value = $(".player_conte param[value^=file]")[0].attribs.value
url = value.split("file=")[1].split("/&provider")[0]
catch err
url = null
Expand Down

0 comments on commit 700e641

Please sign in to comment.