diff --git a/bridges/YeggiBridge.php b/bridges/YeggiBridge.php index d1756ad1..e08a8426 100644 --- a/bridges/YeggiBridge.php +++ b/bridges/YeggiBridge.php @@ -63,13 +63,19 @@ class YeggiBridge extends BridgeAbstract { } $item['uri'] = self::URI . $result->find('a', 0)->href; $item['author'] = 'Yeggi'; - $item['content'] = ''; + + $text = $result->find('i'); + $item['content'] = $text[0]->plaintext . ' on ' . $text[1]->plaintext; $item['uid'] = hash('md5', $item['title']); + foreach($result->find('.item_3_B_2 > a[href^=/q/]') as $tag) { + $item['tags'][] = $tag->plaintext; + } + $image = $result->find('img', 0)->src; if($this->getInput('showimage')) { - $item['content'] .= ''; + $item['content'] .= '
'; } $item['enclosures'] = array($image);