Expanded puppeteer options. Fixed Mike Adriano scraper. Fixed convert utility.

This commit is contained in:
DebaucheryLibrarian
2024-06-12 03:21:45 +02:00
parent 54b2cd1209
commit 8c37071145
11 changed files with 180 additions and 93 deletions

View File

@@ -79,7 +79,7 @@ function convertApi(input, fromOrTo, to) {
const inputNumber = Number(typeof input === 'string' ? input.match(/\d+(\.\d+)?/)?.[0] : input);
return Math.round(convert(inputNumber).from(fromOrTo).to(to)) || null;
return Math.round(convert(inputNumber, fromOrTo).to(to)) || null;
} catch (error) {
logger.error(error);
return null;