Fixed Kelly Madison title regex.
This commit is contained in:
parent
c7cb0e439d
commit
361e8f1bd3
|
@ -65,7 +65,7 @@ async function scrapeScene({ query, html }, url, baseRelease, channel, session)
|
||||||
const titleString = query.cnt('.card-header.row h4, .trailer-starring span, .level-left .level-item');
|
const titleString = query.cnt('.card-header.row h4, .trailer-starring span, .level-left .level-item');
|
||||||
const episode = titleString?.match(/#\d+$/)?.[0];
|
const episode = titleString?.match(/#\d+$/)?.[0];
|
||||||
|
|
||||||
release.title = query.cnt('.trailer-title') || titleString?.match(/(?:Trailer: )?([\w\s]+) -/)?.[1];
|
release.title = query.cnt('.trailer-title') || titleString?.match(/(?:Trailer: )?(.+) -/)?.[1];
|
||||||
release.channel = slugify(titleString?.match(/([\w\s]+) #\d+$/)?.[1], '');
|
release.channel = slugify(titleString?.match(/([\w\s]+) #\d+$/)?.[1], '');
|
||||||
|
|
||||||
const siteKey = siteMapBySlug[release.channel];
|
const siteKey = siteMapBySlug[release.channel];
|
||||||
|
|
Loading…
Reference in New Issue