mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-10 10:34:15 +02:00
bridges: Cleanup occurrences of $item->thumbnailUri
This is a subsequent change to f3eefab
This commit is contained in:
@@ -7,7 +7,7 @@ class DanbooruBridge extends BridgeAbstract{
|
||||
$this->name = "Danbooru";
|
||||
$this->uri = "http://donmai.us/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = "2014-05-25";
|
||||
$this->update = "2016-08-09";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
@@ -37,10 +37,10 @@ class DanbooruBridge extends BridgeAbstract{
|
||||
$item->uri = 'http://donmai.us'.$element->find('a', 0)->href;
|
||||
$item->postid = (int)preg_replace("/[^0-9]/",'', $element->getAttribute('data-id'));
|
||||
$item->timestamp = time();
|
||||
$item->thumbnailUri = 'http://donmai.us'.$element->find('img', 0)->src;
|
||||
$thumbnailUri = 'http://donmai.us'.$element->find('img', 0)->src;
|
||||
$item->tags = $element->find('img', 0)->getAttribute('alt');
|
||||
$item->title = 'Danbooru | '.$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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user