This commit is contained in:
Dragon Fire
2020-11-07 11:13:58 -05:00
parent 4a5ed792ff
commit 0da8578f09
+1 -1
View File
@@ -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')}`;
}
};