mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-20 07:11:43 +02:00
[XPathBridge] Allow multiple categories (#4038)
* [XPathAbstract] allow multiple categories * fix feed icons in two bridges * fix warning * fix linter errors
This commit is contained in:
@@ -57,4 +57,11 @@ class BlizzardNewsBridge extends XPathAbstract
|
||||
}
|
||||
return 'https://news.blizzard.com/' . $locale;
|
||||
}
|
||||
|
||||
public function getIcon()
|
||||
{
|
||||
return <<<icon
|
||||
https://blznews.akamaized.net/images/favicon-cb34a003c6f2f637ee8f4f7b406f3b9b120b918c04cabec7f03a760e708977ea9689a1c638f4396def8dce7b202cd007eae91946cc3c4a578aa8b5694226cfc6.ico
|
||||
icon;
|
||||
}
|
||||
}
|
||||
|
@@ -23,6 +23,11 @@ class NiusBridge extends XPathAbstract
|
||||
const XPATH_EXPRESSION_ITEM_CATEGORIES = './/div[@class="subtitle"]/text()';
|
||||
const SETTING_FIX_ENCODING = false;
|
||||
|
||||
public function getIcon()
|
||||
{
|
||||
return 'https://www.nius.de/favicon.ico';
|
||||
}
|
||||
|
||||
protected function formatItemTitle($value)
|
||||
{
|
||||
return strip_tags($value);
|
||||
|
Reference in New Issue
Block a user