[scraper] fails google-it on empty results
This commit is contained in:
parent
a26c90f960
commit
42714d19a9
1 changed files with 1 additions and 0 deletions
|
|
@ -111,6 +111,7 @@ async function getImdbId(info, type) {
|
|||
}
|
||||
});
|
||||
}).catch(() => googleIt({ query, userAgent: getRandomUserAgent(), disableConsole: true })
|
||||
.then(results => results.length ? results : Promise.reject('No results'))
|
||||
.catch(() => bing.web(query))
|
||||
.then(results => results
|
||||
.map(result => result.link)
|
||||
|
|
|
|||
Loading…
Reference in a new issue