mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-10 14:04:37 +02: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;
|
$item['uri'] = 'https://www.pornhub.com' . $url;
|
||||||
|
|
||||||
// Content
|
// 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) {
|
if ($show_images === true) {
|
||||||
$item['content'] = '<a href="' . $item['uri'] . '"><img src="' . $image . '"></a>';
|
$item['content'] = '<a href="' . $item['uri'] . '"><img src="' . $image . '"></a>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue