mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Fix
This commit is contained in:
@@ -44,6 +44,6 @@ module.exports = class PornhubCommand extends Command {
|
||||
if (text.includes('<div class="noResultsWrapper">')) return null;
|
||||
const $ = cheerio.load(text);
|
||||
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('data-video-vkey')}`;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user