Changed scene fetch title source for BlowPass scraper.
This commit is contained in:
10
src/app.js
10
src/app.js
@@ -1,5 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const log = require('why-is-node-running');
|
||||
const blessed = require('neo-blessed');
|
||||
const clipboard = require('clipboardy');
|
||||
|
||||
@@ -41,7 +42,7 @@ function getMethod() {
|
||||
}
|
||||
|
||||
async function init() {
|
||||
const screen = argv.render && initScreen();
|
||||
const screen = argv.render && !argv.filename && initScreen();
|
||||
|
||||
try {
|
||||
const method = getMethod();
|
||||
@@ -52,6 +53,13 @@ async function init() {
|
||||
console.log(`Result copied to clipboard: ${result.copy}`);
|
||||
}
|
||||
|
||||
if (argv.filename && result.filename) {
|
||||
console.log(result.filename);
|
||||
|
||||
setTimeout(() => log(), 5000);
|
||||
return;
|
||||
}
|
||||
|
||||
if (argv.render) {
|
||||
method.render(result, screen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user