mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 10:55:14 +02:00
fix: various small fixes (#3580)
This commit is contained in:
parent
8b6eecea25
commit
7e4807530e
8 changed files with 35 additions and 14 deletions
|
@ -45,7 +45,8 @@ class FourchanBridge extends BridgeAbstract
|
|||
$file = $element->find('.file', 0);
|
||||
|
||||
if (!empty($file)) {
|
||||
$item['image'] = $element->find('.file a', 0)->href;
|
||||
$var = $element->find('.file a', 0);
|
||||
$item['image'] = $var->href ?? '';
|
||||
$item['imageThumb'] = $element->find('.file img', 0)->src;
|
||||
if (!isset($item['imageThumb']) and strpos($item['image'], '.swf') !== false) {
|
||||
$item['imageThumb'] = 'http://i.imgur.com/eO0cxf9.jpg';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue