diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..d12a3f1 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +extras/ diff --git a/README.md b/README.md index 8c255f6..c57816e 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,30 @@ # CrunchyRoll.js -*CrunchyRoll.js* is capable of saving *anime* episodes from the popular *CrunchyRoll* -streaming service. An episode is stored in the original video format (often -H.264 in a MP4 container) and the configured subtitle format (ASS or SRT). The -two output files are then merged into a single MKV file. +*CrunchyRoll.js* is capable of downloading *anime* episodes from the popular +*CrunchyRoll* streaming service. An episode is stored in the original video format +(often H.264 in a MP4 container) and the configured subtitle format (ASS or +SRT).The two output files are then merged into a single MKV file. ## Motivation *CrunchyRoll* has been providing an amazing streaming service and offers the best way to enjoy *anime* in a *convenient* and *legal* way. As a streaming -service, video files cannot be saved and watched offline. Understandable from a -business perspective and considering possible contract implications, but annoying -for users. This application enables episodes to be saved for offline convenience. -Please do not abuse this application; save episodes for **personal use** and -**delete them** if you do not have an active premium account. Continue to support -*CrunchyRoll*; without our financial backing their service cannot exist! +service, video files cannot be downloaded and watched offline. Understandable +from a business perspective and considering possible contract implications, but +annoying for users. This application enables episodes to be downloaded for +offline convenience. Please do not abuse this application; download episodes for +**personal use** and **delete them** if you do not have an active premium +account. Continue to support *CrunchyRoll*; without our financial backing their +service cannot exist! ## Legal Warning This application is not endorsed or affliated with *CrunchyRoll*. The usage of -this application enables episodes to be saved for offline convenience which may -be forbidden by law in your country. Usage of this application may also cause a -violation of the agreed *Terms of Service* between you and the stream provider. -A tool is not responsible for your actions; please make an informed decision -prior to using this application. +this application enables episodes to be downloaded for offline convenience which +may be forbidden by law in your country. Usage of this application may also +cause a violation of the agreed *Terms of Service* between you and the stream +provider. A tool is not responsible for your actions; please make an informed +decision prior to using this application. ## Status @@ -41,13 +42,13 @@ prior to using this application. * Add CLI interface with all the options. * Support scheduled merging; if it fails now, the video is probably being watched. * Add authentication to the entire stack to support premium content. +* Binary runner for `npm` +* Windows examples with a .bat for ease of use. +* Publish to `npm` with a fixed package.json. ### Pending Implementation -* Binary runner for `npm` -* Windows examples with a .bat for ease of use. * Documentation. -* Publish to `npm` with a fixed package.json. * Enjoy beautiful anime series from disk when internet is down. ## Configuration diff --git a/bin/crunchyroll b/bin/crunchyroll new file mode 100644 index 0000000..67966f1 --- /dev/null +++ b/bin/crunchyroll @@ -0,0 +1,5 @@ +#!/usr/bin/env node +var path = require('path'); +var fs = require('fs'); +var lib = path.join(path.dirname(fs.realpathSync(__filename)), '..'); +require(lib); diff --git a/extras/CrunchyRoll.bat b/extras/CrunchyRoll.bat new file mode 100644 index 0000000..8edf622 --- /dev/null +++ b/extras/CrunchyRoll.bat @@ -0,0 +1,3 @@ +call npm update -g crunchyroll +call %AppData%\npm\crunchyroll -u YOURUSERHERE -p YOURPASSWORDHERE +pause diff --git a/extras/CrunchyRoll.txt b/extras/CrunchyRoll.txt new file mode 100644 index 0000000..28f6665 --- /dev/null +++ b/extras/CrunchyRoll.txt @@ -0,0 +1 @@ +http://www.crunchyroll.com/sword-art-online \ No newline at end of file diff --git a/index.js b/index.js index ccf1c5c..ffc4a88 100644 --- a/index.js +++ b/index.js @@ -3,5 +3,4 @@ var src = require('./src'); src.batch(process.argv, function(err) { if (err) return console.error(err.stack || err); - console.log('Finished.'); }); diff --git a/package.json b/package.json index 02972d3..6df519c 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,17 @@ { + "author": "Roel van Uden", + "description": "CrunchyRoll.js is capable of downloading anime episodes from the popular CrunchyRoll streaming service.", + "keywords": [ + "anime", + "download", + "crunchyroll" + ], "name": "crunchyroll", + "repository": "git://github.com/Deathspike/crunchyroll.js.git", "version": "1.0.0", - "description": "", - "main": "app.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "bin": { + "mangarack": "./bin/crunchyroll" }, - "author": "", - "license": "ISC", "dependencies": { "big-integer": "^1.4.1", "cheerio": "^0.18.0", @@ -15,5 +19,8 @@ "mkdirp": "^0.5.0", "request": "^2.51.0", "xml2js": "^0.4.4" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" } }