Added support for older Vilde title tags.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user