fix(ph): consent cookie (#3490)

This commit is contained in:
Dag 2023-07-05 17:06:23 +02:00 committed by GitHub
parent e9af41d666
commit 18e1597361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ class PornhubBridge extends BridgeAbstract
$show_images = $this->getInput('show_images'); $show_images = $this->getInput('show_images');
$html = getSimpleHTMLDOM($uri); $html = getSimpleHTMLDOM($uri, [
'cookie: accessAgeDisclaimerPH=1'
]);
foreach ($html->find('div.videoUList ul.videos li.videoblock') as $element) { foreach ($html->find('div.videoUList ul.videos li.videoblock') as $element) {
$item = []; $item = [];