mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
fix: image (#3698)
This commit is contained in:
parent
0c69148cff
commit
d33808ea9e
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue