mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Fix
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class PornhubCommand extends Command {
|
|||||||
.query({ search: query });
|
.query({ search: query });
|
||||||
if (text.includes('<div class="noResultsWrapper">')) return null;
|
if (text.includes('<div class="noResultsWrapper">')) return null;
|
||||||
const $ = cheerio.load(text);
|
const $ = cheerio.load(text);
|
||||||
const video = $('li[class="pcVideoListItem js-pop videoblock videoBox]').eq(5);
|
const video = $('li[class="pcVideoListItem js-pop videoblock videoBox"]').eq(5);
|
||||||
return `https://www.pornhub.com/view_video.php?viewkey=${video.attr('_vkey')}`;
|
return `https://www.pornhub.com/view_video.php?viewkey=${video.attr('_vkey')}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user