1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-29 19:09:56 +02:00

added new bridges (#3920)

* added new bridges

* lint

---------

Co-authored-by: Dag <me@dvikan.no>
This commit is contained in:
hleskien
2024-01-24 19:12:38 +01:00
committed by GitHub
parent 487c692e68
commit 1262cc982c
8 changed files with 298 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
class FliegermagazinBridge extends XPathAbstract
{
const NAME = 'fliegermagazin';
const URI = 'https://www.fliegermagazin.de/news-fuer-piloten/';
const DESCRIPTION = 'News für Piloten';
const MAINTAINER = 'hleskien';
const FEED_SOURCE_URL = 'https://www.fliegermagazin.de/news-fuer-piloten/';
const XPATH_EXPRESSION_FEED_ICON = './/link[@rel="shortcut icon"]/@href';
const XPATH_EXPRESSION_ITEM = '//article[@data-type="post"]';
const XPATH_EXPRESSION_ITEM_TITLE = './/h3/a/text()';
const XPATH_EXPRESSION_ITEM_CONTENT = './/h3/a/text()';
const XPATH_EXPRESSION_ITEM_URI = './/h3/a/@href';
const XPATH_EXPRESSION_ITEM_AUTHOR = './/p[@class="author-field"]';
// Timestamp kann nur durch Laden des Artikels herausgefunden werden
//const XPATH_EXPRESSION_ITEM_TIMESTAMP = './/span/i';
const XPATH_EXPRESSION_ITEM_ENCLOSURES = './/img/@src';
//const XPATH_EXPRESSION_ITEM_CATEGORIES = './/';
}