0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2024-11-23 07:37:35 +00:00
RSS-Bridge_rss-bridge/bridges/LogicMastersBridge.php
hleskien 1262cc982c
added new bridges (#3920)
* added new bridges

* lint

---------

Co-authored-by: Dag <me@dvikan.no>
2024-01-24 19:12:38 +01:00

26 lines
1.0 KiB
PHP

<?php
class LogicMastersBridge extends XPathAbstract
{
const NAME = 'Logic Masters Deutschland e.V.';
const URI = 'https://logic-masters.de/';
const DESCRIPTION = 'Aktuelles';
const MAINTAINER = 'hleskien';
const FEED_SOURCE_URL = 'https://logic-masters.de/';
//const XPATH_EXPRESSION_FEED_ICON = './/link[@rel="SHORTCUT ICON"]/@href';
const XPATH_EXPRESSION_ITEM = '//div[@class="aktuelles_eintrag"]';
const XPATH_EXPRESSION_ITEM_TITLE = './div[@class="aktuelles_titel"]';
const XPATH_EXPRESSION_ITEM_CONTENT = './p';
//const XPATH_EXPRESSION_ITEM_URI = './a/@href';
//const XPATH_EXPRESSION_ITEM_AUTHOR = './/';
const XPATH_EXPRESSION_ITEM_TIMESTAMP = './div[@class="aktuelles_datum"]';
//const XPATH_EXPRESSION_ITEM_ENCLOSURES = './';
//const XPATH_EXPRESSION_ITEM_CATEGORIES = './/';
protected function formatItemTimestamp($value)
{
$formatter = new IntlDateFormatter('de', IntlDateFormatter::LONG, IntlDateFormatter::NONE);
return $formatter->parse($value);
}
}