From 2aa323427bccfd3c85da0484f9ed3988e293f809 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 24 Jan 2026 02:03:14 +0100 Subject: [PATCH] Using full URL slug as entry ID for Cherry Pimps, ID not consistent. --- seeds/02_sites.js | 7 ++++++- src/scrapers/cherrypimps.js | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/seeds/02_sites.js b/seeds/02_sites.js index 8f06bb61..b5fc2727 100755 --- a/seeds/02_sites.js +++ b/seeds/02_sites.js @@ -2715,9 +2715,14 @@ const sites = [ { name: 'Wild On Cam', slug: 'wildoncam', - url: 'https://cherrypimps.com/series/wild-on-cam.html', + // url: 'https://cherrypimps.com/series/wild-on-cam.html', + url: 'https://wildoncam.com', alias: ['woc'], parent: 'cherrypimps', + parameters: { + // allow native URLs to match + slug: 'wild-on-cam', + }, }, { name: 'Cherry of the Month', diff --git a/src/scrapers/cherrypimps.js b/src/scrapers/cherrypimps.js index e71d06a1..2c809dce 100755 --- a/src/scrapers/cherrypimps.js +++ b/src/scrapers/cherrypimps.js @@ -13,7 +13,7 @@ function scrapeAll(scenes) { const { pathname } = new URL(url); release.url = url; - release.entryId = pathname.match(/\/trailers\/(\d+).*.html/)[1]; + release.entryId = pathname.match(/\/trailers\/(.*)?.html/)[1]?.toLowerCase(); // almost all slugs start with an ID, but not all release.title = query.content('.item-title a'); @@ -50,7 +50,7 @@ function scrapeScene({ query }, url, _channel, baseRelease) { const release = { url }; const { pathname } = new URL(url); - release.entryId = pathname.match(/\/trailers\/(\d+).*.html/)[1]; + release.entryId = pathname.match(/\/trailers\/(.*)?.html/)[1].toLowerCase(); release.title = query.content('.item-title h1'); release.description = query.content('.update-info-block p');