mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
bridges: Cleanup occurrences of $item->thumbnailUri
This is a subsequent change to f3eefab
This commit is contained in:
parent
e329a4c1b6
commit
42b6c82753
53 changed files with 104 additions and 183 deletions
|
@ -7,7 +7,7 @@ class SafebooruBridge extends BridgeAbstract{
|
|||
$this->name = "Safebooru";
|
||||
$this->uri = "http://safebooru.org/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = "2014-05-25";
|
||||
$this->update = "2016-08-09";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
|
@ -42,10 +42,10 @@ class SafebooruBridge extends BridgeAbstract{
|
|||
$item->uri = 'http://safebooru.org/'.$element->find('a', 0)->href;
|
||||
$item->postid = (int)preg_replace("/[^0-9]/",'', $element->getAttribute('id'));
|
||||
$item->timestamp = time();
|
||||
$item->thumbnailUri = $element->find('img', 0)->src;
|
||||
$thumbnailUri = $element->find('img', 0)->src;
|
||||
$item->tags = $element->find('img', 0)->getAttribute('alt');
|
||||
$item->title = 'Safebooru | '.$item->postid;
|
||||
$item->content = '<a href="' . $item->uri . '"><img src="' . $item->thumbnailUri . '" /></a><br>Tags: '.$item->tags;
|
||||
$item->content = '<a href="' . $item->uri . '"><img src="' . $thumbnailUri . '" /></a><br>Tags: '.$item->tags;
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue