Using full URL slug as entry ID for Cherry Pimps, ID not consistent.

This commit is contained in:
DebaucheryLibrarian 2026-01-24 02:03:14 +01:00
parent 176573733b
commit 2aa323427b
2 changed files with 8 additions and 3 deletions

View File

@ -2715,9 +2715,14 @@ const sites = [
{ {
name: 'Wild On Cam', name: 'Wild On Cam',
slug: 'wildoncam', 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'], alias: ['woc'],
parent: 'cherrypimps', parent: 'cherrypimps',
parameters: {
// allow native URLs to match
slug: 'wild-on-cam',
},
}, },
{ {
name: 'Cherry of the Month', name: 'Cherry of the Month',

View File

@ -13,7 +13,7 @@ function scrapeAll(scenes) {
const { pathname } = new URL(url); const { pathname } = new URL(url);
release.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'); release.title = query.content('.item-title a');
@ -50,7 +50,7 @@ function scrapeScene({ query }, url, _channel, baseRelease) {
const release = { url }; const release = { url };
const { pathname } = new URL(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.title = query.content('.item-title h1');
release.description = query.content('.update-info-block p'); release.description = query.content('.update-info-block p');