Skip to content

Commit

Permalink
feat(links): Print all links
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Apr 4, 2017
1 parent 4d23137 commit b81c882
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ if (program.anime && program.chapter) {
}
spinner.succeed();
if (program.mpv) {
const urls = data.urls.join('\n');
console.log(chalk.green(`All videos options:\n${urls}\n`));
const url = data.urls[0];
console.log(chalk.green(`Playing ${url} in mpv`));
console.log(chalk.green(`Trying Playing ${url} in mpv\n\nIf fail try with other link`));
spawn('mpv', [url], {detached: true, stdio: 'ignore'});
} else if (typeof program.download !== 'undefined') {
if (program.download === true) {
Expand Down

0 comments on commit b81c882

Please sign in to comment.