mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
Add item dimensions (width x height) and source URL (if it exists in JSON) (#3135)
This commit is contained in:
parent
86c3a969b8
commit
00ff0890bb
1 changed files with 6 additions and 2 deletions
|
@ -64,8 +64,12 @@ class GelbooruBridge extends BridgeAbstract
|
|||
}
|
||||
|
||||
$item['content'] = '<a href="' . $item['uri'] . '"><img src="'
|
||||
. $thumbnailUri . '" /></a><br><br><b>Tags:</b> '
|
||||
. $item['tags'] . '<br><br>' . $item['timestamp'];
|
||||
. $thumbnailUri . '" /></a><br><br><b>Dimensions:</b> '
|
||||
. strval($element->width) . ' x ' . strval($element->height) . '<br><br><b>Tags:</b> '
|
||||
. $item['tags'];
|
||||
if (!is_null($element->source)) {
|
||||
$item['content'] .= '<br><br><b>Source: </b><a href="' . $element->source . '">' . $element->source . '</a>';
|
||||
}
|
||||
|
||||
return $item;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue