Added support for older Vilde title tags.

This commit is contained in:
DebaucheryLibrarian
2026-06-03 04:34:31 +02:00
parent a57a6b14d4
commit e0b00b7776
2 changed files with 19 additions and 3 deletions

View File

@@ -3084,6 +3084,14 @@ const aliases = [
name: 'stepmom',
for: 'family',
},
{
name: 'ass2mouth',
for: 'atm',
},
{
name: 'fist',
for: 'fisting',
},
];
const priorities = [ // higher index is higher priority

View File

@@ -12,11 +12,19 @@ function extractEntryId(poster) {
}
}
function extractTags(title) {
if (!title) {
function extractTags(title, titleComment) {
if (!title && !titleComment) {
return [];
}
if (titleComment?.includes('<i>')) {
const tagsMatch = titleComment.match(/<i>(.*?)<\/i>/)?.[1];
if (tagsMatch) {
return tagsMatch.split('-').map((tag) => tag.trim().toLowerCase());
}
}
const firstTagIndex = title.match(/[A-Z]{2}/)?.index;
if (firstTagIndex) {
@@ -62,7 +70,7 @@ function scrapeAll(scenes, channel, parameters) {
release.forceDeep = true;
release.title = query.content('a h5, .product-content p, .video_text');
release.tags = extractTags(release.title);
release.tags = extractTags(release.title, query.content('//a/comment()'));
const { poster, photos } = getPhotos(query.img('img[src*="/videos/images"], img[src*="/uploads/images"]'));