This commit is contained in:
Dragon Fire
2020-11-07 11:11:47 -05:00
parent 0df8555b85
commit 4a5ed792ff
+1 -1
View File
@@ -43,7 +43,7 @@ module.exports = class PornhubCommand extends Command {
.query({ search: query });
if (text.includes('<div class="noResultsWrapper">')) return null;
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')}`;
}
};