mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 12:43:25 +00:00
fix: no double log
This commit is contained in:
@@ -189,7 +189,7 @@ async function runScraper(providers: ProviderControls, source: MetaOutput, optio
|
|||||||
id: source.id,
|
id: source.id,
|
||||||
});
|
});
|
||||||
spinnies.succeed('scrape', { text: 'Done!' });
|
spinnies.succeed('scrape', { text: 'Done!' });
|
||||||
console.log(logDeepObject(result));
|
logDeepObject(result);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
let message = 'Unknown error';
|
let message = 'Unknown error';
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
@@ -214,7 +214,7 @@ async function runScraper(providers: ProviderControls, source: MetaOutput, optio
|
|||||||
id: source.id,
|
id: source.id,
|
||||||
});
|
});
|
||||||
spinnies.succeed('scrape', { text: 'Done!' });
|
spinnies.succeed('scrape', { text: 'Done!' });
|
||||||
console.log(logDeepObject(result));
|
logDeepObject(result);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
let message = 'Unknown error';
|
let message = 'Unknown error';
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
|
Reference in New Issue
Block a user