mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[YeggiBridge] Add model source and tags (#2566)
This commit is contained in:
parent
0d80f2d5c3
commit
d27c1a99c2
@ -63,13 +63,19 @@ class YeggiBridge extends BridgeAbstract {
|
|||||||
}
|
}
|
||||||
$item['uri'] = self::URI . $result->find('a', 0)->href;
|
$item['uri'] = self::URI . $result->find('a', 0)->href;
|
||||||
$item['author'] = 'Yeggi';
|
$item['author'] = 'Yeggi';
|
||||||
$item['content'] = '';
|
|
||||||
|
$text = $result->find('i');
|
||||||
|
$item['content'] = $text[0]->plaintext . ' on ' . $text[1]->plaintext;
|
||||||
$item['uid'] = hash('md5', $item['title']);
|
$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;
|
$image = $result->find('img', 0)->src;
|
||||||
|
|
||||||
if($this->getInput('showimage')) {
|
if($this->getInput('showimage')) {
|
||||||
$item['content'] .= '<img src="' . $image . '">';
|
$item['content'] .= '<br><img src="' . $image . '">';
|
||||||
}
|
}
|
||||||
|
|
||||||
$item['enclosures'] = array($image);
|
$item['enclosures'] = array($image);
|
||||||
|
Loading…
Reference in New Issue
Block a user