diff --git a/src/scrapers/bang.js b/src/scrapers/bang.js index 712f94f7..1e428aa3 100755 --- a/src/scrapers/bang.js +++ b/src/scrapers/bang.js @@ -70,18 +70,23 @@ function scrapeAll(scenes, entity) { })); const poster = query.img('img[data-videopreview-target="image"]'); - const posterUrl = new URL(poster); if (poster) { - release.poster = [ - `${posterUrl.origin}${posterUrl.pathname}`, - posterUrl.href, - ].map((src) => ({ - src, - expectType: { - 'application/octet-stream': 'image/jpeg', - }, - })); + try { + const posterUrl = new URL(poster); + + release.poster = [ + `${posterUrl.origin}${posterUrl.pathname}`, + posterUrl.href, + ].map((src) => ({ + src, + expectType: { + 'application/octet-stream': 'image/jpeg', + }, + })); + } catch (error) { + // nothing needed + } } release.teaser = [