mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-01 22:35:21 +03:00
parent
d38cd05bea
commit
ca667d731c
1 changed files with 1 additions and 2 deletions
|
@ -19,13 +19,12 @@ class VproTegenlichtBridge extends BridgeAbstract
|
||||||
$dom = getSimpleHTMLDOM($url)
|
$dom = getSimpleHTMLDOM($url)
|
||||||
or returnServerError('No contents received!');
|
or returnServerError('No contents received!');
|
||||||
$dom = $dom->find('ul#browsable-news-overview', 0);
|
$dom = $dom->find('ul#browsable-news-overview', 0);
|
||||||
|
|
||||||
$dom = defaultLinkTo($dom, $this->getURI());
|
$dom = defaultLinkTo($dom, $this->getURI());
|
||||||
foreach ($dom->find('li') as $article) {
|
foreach ($dom->find('li') as $article) {
|
||||||
$a = $article->find('a.complex-teaser', 0);
|
$a = $article->find('a.complex-teaser', 0);
|
||||||
$title = $article->find('a.complex-teaser', 0)->title;
|
$title = $article->find('a.complex-teaser', 0)->title;
|
||||||
$url = $article->find('a.complex-teaser', 0)->href;
|
$url = $article->find('a.complex-teaser', 0)->href;
|
||||||
$author = "VPRO tegenlicht";
|
$author = 'VPRO tegenlicht';
|
||||||
$content = $article->find('p.complex-teaser-summary', 0)->plaintext;
|
$content = $article->find('p.complex-teaser-summary', 0)->plaintext;
|
||||||
$timestamp = strtotime($article->find('div.complex-teaser-data', 0)->plaintext);
|
$timestamp = strtotime($article->find('div.complex-teaser-data', 0)->plaintext);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue