diff --git a/bin/crunchyroll b/bin/crunchyroll index 67966f1..52c02f5 100644 --- a/bin/crunchyroll +++ b/bin/crunchyroll @@ -1,5 +1,4 @@ #!/usr/bin/env node var path = require('path'); var fs = require('fs'); -var lib = path.join(path.dirname(fs.realpathSync(__filename)), '..'); -require(lib); +require(path.join(path.dirname(fs.realpathSync(__filename)), '..')); diff --git a/src/batch.js b/src/batch.js index 2a7164e..9a5a2ba 100644 --- a/src/batch.js +++ b/src/batch.js @@ -28,6 +28,7 @@ module.exports = function(args, done) { /** * Splits the value into arguments. + * @private * @param {string} value * @returns {Array.} */ diff --git a/src/episode.js b/src/episode.js index 0413d32..e4b7d4c 100644 --- a/src/episode.js +++ b/src/episode.js @@ -26,6 +26,7 @@ module.exports = function (config, address, done) { /** * Completes a download and writes the message with an elapsed time. + * @private * @param {string} message * @param {number} begin * @param {function(Error)} done @@ -72,6 +73,7 @@ function _download(config, page, player, done) { /** * Names the file based on the config, page, series and tag. + * @private * @param {Object} config * @param {Object} page * @param {string} series diff --git a/src/request.js b/src/request.js index 53af976..1a241f6 100644 --- a/src/request.js +++ b/src/request.js @@ -17,6 +17,7 @@ module.exports.get = function(config, options, done) { /** * Performs a POST request for the resource. +* @private * @param {Object} config * @param {(string|Object)} options * @param {function(Error, Object, string)} done @@ -30,6 +31,7 @@ module.exports.post = function(config, options, done) { /** * Authenticates using the configured pass and user. + * @private * @param {Object} config * @param {function(Error)} done */ @@ -53,6 +55,7 @@ function _authenticate(config, done) { /** * Modifies the options to use the authenticated cookie jar. + * @private * @param {(string|Object)} options * @returns {Object} */ diff --git a/src/series.js b/src/series.js index e743b63..0cdc91a 100644 --- a/src/series.js +++ b/src/series.js @@ -38,6 +38,7 @@ module.exports = function(config, address, done) { /** * Downloads the episode. + * @private * @param {Object.} cache * @param {Object} config * @param {string} baseAddress diff --git a/src/video/merge.js b/src/video/merge.js index 4a9e7f5..3b12911 100644 --- a/src/video/merge.js +++ b/src/video/merge.js @@ -41,7 +41,8 @@ function _command() { } /** - * Unlinks the video and subtitle + * Unlinks the video and subtitle. + * @private * @param {string} videoPath * @param {string} subtitlePath * @param {function(Error)} done @@ -55,6 +56,7 @@ function _unlink(videoPath, subtitlePath, done) { /** * Attempts to unlink the video and subtitle with a timeout between each try. + * @private * @param {string} videoPath * @param {string} subtitlePath * @param {function(Error)} done