forked from DebaucheryLibrarian/traxxx
Improved Model Media scene code matching.
This commit is contained in:
parent
277a06c3de
commit
e9a1df9123
|
@ -14,7 +14,7 @@ function scrapeAll(scenes) {
|
||||||
const { origin, pathname, searchParams } = new URL(url);
|
const { origin, pathname, searchParams } = new URL(url);
|
||||||
|
|
||||||
release.url = `${origin}${pathname}`;
|
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) => {
|
release.actors = searchParams.get('models_name')?.split(',').map((actor) => {
|
||||||
const [han, english] = actor.split('/').map((name) => name.trim());
|
const [han, english] = actor.split('/').map((name) => name.trim());
|
||||||
|
|
|
@ -47,8 +47,6 @@ async function curateReleaseEntry(release, batchId, existingRelease, type = 'sce
|
||||||
updated_batch_id: batchId,
|
updated_batch_id: batchId,
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(curatedRelease);
|
|
||||||
|
|
||||||
if (release.id) {
|
if (release.id) {
|
||||||
// release is updated
|
// release is updated
|
||||||
curatedRelease.id = release.id;
|
curatedRelease.id = release.id;
|
||||||
|
|
Loading…
Reference in New Issue