Skip to content

Commit

Permalink
Fix quality of video.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Gatica committed Mar 20, 2015
1 parent 0808d03 commit a1a7a01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anime-dl",
"version": "1.2.4",
"version": "1.2.5",
"description": "CLI for show and download anime from jkanime.net.",
"main": "lib",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ getUrlVideo = (animeUrl, chapter, cb) ->
ANIME.codeName = animeUrl.replace(url, "").replace("/", "")
ANIME.chapter = parseInt chapter, 10
try
value = $(".player_conte param[value^=file]")[0].attribs.value
links = $(".player_conte param[value^=file]")
value = links[links.length - 1].attribs.value
url = value.split("file=")[1].split("/&provider")[0]
catch err
url = null
Expand Down

0 comments on commit a1a7a01

Please sign in to comment.