From 01c4b61f03201cbb4c59a6652dbf7db6fd65529f Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Fri, 27 Mar 2026 03:32:26 +0100 Subject: [PATCH] No longer Bang @id field for entryId, this is now the full URL for some reason. --- src/scrapers/bang.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scrapers/bang.js b/src/scrapers/bang.js index cfb49355..83e77847 100755 --- a/src/scrapers/bang.js +++ b/src/scrapers/bang.js @@ -125,7 +125,9 @@ async function scrapeScene({ query }, { url, entity }) { const release = {}; const data = query.json('//script[contains(text(), "VideoObject")]'); - release.entryId = data?.['@id'] || decodeId(new URL(url).pathname.match(/\/video\/([\w-]+)\//)?.[1]); + // @id can be URL for some reason + // release.entryId = data?.['@id'] || decodeId(new URL(url).pathname.match(/\/video\/([\w-]+)\//)?.[1]); + release.entryId = decodeId(new URL(url).pathname.match(/\/video\/([\w-]+)\//)?.[1]); // data title is not capitalized, prefer markup release.title = query.attribute('meta[property="og:title"]', 'content') || query.content('.video-container + div h1') || data?.name;