mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
fix: image (#3698)
This commit is contained in:
parent
0c69148cff
commit
d33808ea9e
@ -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'] = '<a href="' . $item['uri'] . '"><img src="' . $image . '"></a>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user