Windows examples, runnables, etc.

This commit is contained in:
Roel van Uden 2015-01-24 14:56:12 +01:00
parent fd9ef59145
commit c520401432
7 changed files with 42 additions and 25 deletions

1
.npmignore Normal file
View File

@ -0,0 +1 @@
extras/

View File

@ -1,29 +1,30 @@
# CrunchyRoll.js # CrunchyRoll.js
*CrunchyRoll.js* is capable of saving *anime* episodes from the popular *CrunchyRoll* *CrunchyRoll.js* is capable of downloading *anime* episodes from the popular
streaming service. An episode is stored in the original video format (often *CrunchyRoll* streaming service. An episode is stored in the original video format
H.264 in a MP4 container) and the configured subtitle format (ASS or SRT). The (often H.264 in a MP4 container) and the configured subtitle format (ASS or
two output files are then merged into a single MKV file. SRT).The two output files are then merged into a single MKV file.
## Motivation ## Motivation
*CrunchyRoll* has been providing an amazing streaming service and offers the *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 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 service, video files cannot be downloaded and watched offline. Understandable
business perspective and considering possible contract implications, but annoying from a business perspective and considering possible contract implications, but
for users. This application enables episodes to be saved for offline convenience. annoying for users. This application enables episodes to be downloaded for
Please do not abuse this application; save episodes for **personal use** and offline convenience. Please do not abuse this application; download episodes for
**delete them** if you do not have an active premium account. Continue to support **personal use** and **delete them** if you do not have an active premium
*CrunchyRoll*; without our financial backing their service cannot exist! account. Continue to support *CrunchyRoll*; without our financial backing their
service cannot exist!
## Legal Warning ## Legal Warning
This application is not endorsed or affliated with *CrunchyRoll*. The usage of This application is not endorsed or affliated with *CrunchyRoll*. The usage of
this application enables episodes to be saved for offline convenience which may this application enables episodes to be downloaded for offline convenience which
be forbidden by law in your country. Usage of this application may also cause a may be forbidden by law in your country. Usage of this application may also
violation of the agreed *Terms of Service* between you and the stream provider. cause a violation of the agreed *Terms of Service* between you and the stream
A tool is not responsible for your actions; please make an informed decision provider. A tool is not responsible for your actions; please make an informed
prior to using this application. decision prior to using this application.
## Status ## Status
@ -41,13 +42,13 @@ prior to using this application.
* Add CLI interface with all the options. * Add CLI interface with all the options.
* Support scheduled merging; if it fails now, the video is probably being watched. * Support scheduled merging; if it fails now, the video is probably being watched.
* Add authentication to the entire stack to support premium content. * 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 ### Pending Implementation
* Binary runner for `npm`
* Windows examples with a .bat for ease of use.
* Documentation. * Documentation.
* Publish to `npm` with a fixed package.json.
* Enjoy beautiful anime series from disk when internet is down. * Enjoy beautiful anime series from disk when internet is down.
## Configuration ## Configuration

5
bin/crunchyroll Normal file
View File

@ -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);

3
extras/CrunchyRoll.bat Normal file
View File

@ -0,0 +1,3 @@
call npm update -g crunchyroll
call %AppData%\npm\crunchyroll -u YOURUSERHERE -p YOURPASSWORDHERE
pause

1
extras/CrunchyRoll.txt Normal file
View File

@ -0,0 +1 @@
http://www.crunchyroll.com/sword-art-online

View File

@ -3,5 +3,4 @@ var src = require('./src');
src.batch(process.argv, function(err) { src.batch(process.argv, function(err) {
if (err) return console.error(err.stack || err); if (err) return console.error(err.stack || err);
console.log('Finished.');
}); });

View File

@ -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", "name": "crunchyroll",
"repository": "git://github.com/Deathspike/crunchyroll.js.git",
"version": "1.0.0", "version": "1.0.0",
"description": "", "bin": {
"main": "app.js", "mangarack": "./bin/crunchyroll"
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "",
"license": "ISC",
"dependencies": { "dependencies": {
"big-integer": "^1.4.1", "big-integer": "^1.4.1",
"cheerio": "^0.18.0", "cheerio": "^0.18.0",
@ -15,5 +19,8 @@
"mkdirp": "^0.5.0", "mkdirp": "^0.5.0",
"request": "^2.51.0", "request": "^2.51.0",
"xml2js": "^0.4.4" "xml2js": "^0.4.4"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
} }
} }