app.js 778 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. // TODO: Improve SRT support for <i>, <b> and <u>.
  3. // TODO: Add ASS support.
  4. // TODO: Add muxing (MP4+ASS=MKV).
  5. // TODO: Add series API to download an entire series rather than per-episode.
  6. // TODO: Add batch-mode to queue a bunch of series and do incremental downloads.
  7. // TODO: Add authentication to the entire stack to support premium content.
  8. // TODO: Add CLI interface with all the options.
  9. var config = {
  10. format: undefined, // defaults to srt
  11. path: undefined, // defaults to process.cwd()
  12. tag: undefined, // defaults to CrunchyRoll
  13. };
  14. var episode = require('./src/episode');
  15. episode(
  16. config,
  17. 'http://www.crunchyroll.com/fairy-tail/episode-1-the-dragon-king-652167',
  18. function(err) {
  19. if (err) return console.log(err);
  20. console.log('All done!');
  21. });