From e9a1df9123563d9f28f23e975533e6c76e4a0361 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 2 Aug 2023 16:38:50 +0200 Subject: [PATCH] Improved Model Media scene code matching. --- src/scrapers/modelmedia.js | 2 +- src/store-releases.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scrapers/modelmedia.js b/src/scrapers/modelmedia.js index 568e9120..76249511 100644 --- a/src/scrapers/modelmedia.js +++ b/src/scrapers/modelmedia.js @@ -14,7 +14,7 @@ function scrapeAll(scenes) { const { origin, pathname, searchParams } = new URL(url); release.url = `${origin}${pathname}`; - release.shootId = pathname.match(/((LA)|(LT)|(MA)|(MD)|(MM)|(MS)|(MT)|(RR))[\w-]+/)?.[0]; // pathname sometimes contains other text, match at least two letters to prevent false positives + release.shootId = pathname.match(/((LA)|(LT)|(MA)|(MD)|(MM)|(MS)|(MT)|(RR))\w*-\w+((EP)?\d+)?/)?.[0]; // pathname sometimes contains other text, match at least two letters to prevent false positives release.actors = searchParams.get('models_name')?.split(',').map((actor) => { const [han, english] = actor.split('/').map((name) => name.trim()); diff --git a/src/store-releases.js b/src/store-releases.js index 5b4766bb..b0d0b9b2 100755 --- a/src/store-releases.js +++ b/src/store-releases.js @@ -47,8 +47,6 @@ async function curateReleaseEntry(release, batchId, existingRelease, type = 'sce updated_batch_id: batchId, }; - console.log(curatedRelease); - if (release.id) { // release is updated curatedRelease.id = release.id;