mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-19 23:03:01 +02:00
refactor: FeedExpander::parseItem() descendants (#3744)
This commit is contained in:
@@ -6,9 +6,15 @@ class QwantzBridge extends FeedExpander
|
||||
const URI = 'https://qwantz.com/';
|
||||
const DESCRIPTION = 'Latest comic.';
|
||||
|
||||
protected function parseItem($feedItem)
|
||||
public function collectData()
|
||||
{
|
||||
$item = parent::parseItem($feedItem);
|
||||
$this->collectExpandableDatas(self::URI . 'rssfeed.php');
|
||||
}
|
||||
|
||||
protected function parseItem($item)
|
||||
{
|
||||
$item = parent::parseItem($item);
|
||||
|
||||
$item['author'] = 'Ryan North';
|
||||
|
||||
preg_match('/title="(.*?)"/', $item['content'], $matches);
|
||||
@@ -25,11 +31,6 @@ class QwantzBridge extends FeedExpander
|
||||
return $item;
|
||||
}
|
||||
|
||||
public function collectData()
|
||||
{
|
||||
$this->collectExpandableDatas(self::URI . 'rssfeed.php');
|
||||
}
|
||||
|
||||
public function getIcon()
|
||||
{
|
||||
return self::URI . 'favicon.ico';
|
||||
|
Reference in New Issue
Block a user