From d33808ea9eddfb5fd7371e2ad0ba5c8d232a9b1f Mon Sep 17 00:00:00 2001 From: Dag Date: Sat, 23 Sep 2023 23:49:01 +0200 Subject: [PATCH] fix: image (#3698) --- bridges/PornhubBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/PornhubBridge.php b/bridges/PornhubBridge.php index 104463a8..b8f1dec8 100644 --- a/bridges/PornhubBridge.php +++ b/bridges/PornhubBridge.php @@ -88,7 +88,8 @@ class PornhubBridge extends BridgeAbstract $item['uri'] = 'https://www.pornhub.com' . $url; // Content - $image = $element->find('img', 0)->getAttribute('data-src'); + $videoImage = $element->find('img', 0); + $image = $videoImage->getAttribute('data-src') ?: $videoImage->getAttribute('src'); if ($show_images === true) { $item['content'] = ''; }