forked from 50n50/sources
Update animedefenders/animedefenders.js
This commit is contained in:
@@ -7,8 +7,12 @@ async function searchResults(keyword) {
|
|||||||
const regex = /<a class="vod-item-img shining" href="(.*?)">[\s\S]*?data-original="(.*?)"[\s\S]*?<h3 class="vod-item-title.*?"><a href=".*?">(.*?)<\/a><\/h3>/g;
|
const regex = /<a class="vod-item-img shining" href="(.*?)">[\s\S]*?data-original="(.*?)"[\s\S]*?<h3 class="vod-item-title.*?"><a href=".*?">(.*?)<\/a><\/h3>/g;
|
||||||
let match;
|
let match;
|
||||||
while ((match = regex.exec(html)) !== null) {
|
while ((match = regex.exec(html)) !== null) {
|
||||||
|
let title = match[3].trim();
|
||||||
|
title = title.replace(/\s*\(Uncensored\)\s*$/i, '');
|
||||||
|
title = title.replace(/\s*BD\s*$/i, '');
|
||||||
|
title = title.trim();
|
||||||
results.push({
|
results.push({
|
||||||
title: match[3].trim(),
|
title: title,
|
||||||
image: match[2].trim(),
|
image: match[2].trim(),
|
||||||
href: "https://animedefenders.me" + match[1].trim()
|
href: "https://animedefenders.me" + match[1].trim()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user