mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-31 23:39:56 +02:00
Add title and alt text to Oglaf feed
This commit is contained in:
parent
6c86e2c1f7
commit
b07a110028
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,9 @@ class OglafBridge extends FeedExpander
|
|||
{
|
||||
$html = getSimpleHTMLDOMCached($item['uri']);
|
||||
$comicImage = $html->find('img[id="strip"]', 0);
|
||||
$item['content'] = $comicImage;
|
||||
$alt = $comicImage->getAttribute("alt");
|
||||
$title = $comicImage->getAttribute("title");
|
||||
$item['content'] = $comicImage . "<h3>Alt: {$alt}</h3><h3>Title: {$title}</h3>";
|
||||
|
||||
return $item;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue