From 4a10887e480ef7a88cad97f439f29d4ac042ceb1 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Fri, 4 Aug 2023 00:12:24 +0200 Subject: [PATCH] Fixed Aziani breaking on missing source. --- src/scrapers/aziani.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrapers/aziani.js b/src/scrapers/aziani.js index 00718fc7..d86f2361 100755 --- a/src/scrapers/aziani.js +++ b/src/scrapers/aziani.js @@ -7,7 +7,7 @@ const { feetInchesToCm } = require('../utils/convert'); const imageRegex = /-\dx.jpg/; function getFallbacks(source) { - if (source.includes('join.jpg')) { + if (!source || source.includes('join.jpg')) { return null; }