Skip to content

Commit

Permalink
Merge pull request #31 from ritze/master
Browse files Browse the repository at this point in the history
Fix tagesschau feed
  • Loading branch information
Strubbl committed Feb 10, 2016
2 parents 29bc0f3 + 0d29695 commit 79c8886
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions config/tagesschau.php
Expand Up @@ -4,6 +4,21 @@
$config['author_url'] = "http://blog.bernd-distler.net/";
$config['url'] = "http://www.tagesschau.de/xml/rss2";
$config['base_url'] = "http://www.tagesschau.de";
$config['content'] = array("#<span class=\"topline\">(.*)<div class=\"standDatum\">#Uis", 1);

$config['content'] = array("#<div class=\"section sectionZ sectionArticle\">(.*)<div class=\"linklist teaserImTeaser\">#Uis", 1);
$config['search'] = array("#<div class=\"teaser\">(.*)<!-- teaser -->#Uis",
"#<iframe .*>.*</iframe>#Uis",
"#<div class=\"shareCon\">.*<!-- .*Share Con -->#Uis",
"#<p class=\"infotext\">(.*)</p>#Uis",
"#<div class=\"tweet\">(.*)<!-- teaser -->#Uis",
"#<form .*>.*<div class=\"button\" title=\"MP3.*>.*<a (.*)>.*</a>.*</div>.*<div class=\"button\" .*>.*<a (.*)>.*</a>.*</div>.*</form>#Uis",
"#<form .*>.*<div class=\"button\" title=\"Video.*>.*<a (.*)>.*</a>.*</div>.*<div class=\"button\" .*>.*<a (.*)>.*</a>.*<div class=\"button\" .*>.*<a (.*)>.*</a>.*</div>.*<div class=\"button\" .*>.*<a (.*)>.*</a>.*</div>.*<div class=\"button\" .*>.*<a (.*)>.*</a>.*</div>.*<div class=\"button\" .*>.*<a (.*)>.*</a>.*</div>.*</form>#Uis",
"#<a href=\".*\" class=\"icon galerie\"><img .*></a>#Uis");
$config['replace'] = array("",
"",
"",
"<blockquote>$1",
"<blockquote>$1</blockquote>",
"<a $1>MP3</a> | <a $2>OGG</a></blockquote>",
"<a $1>h.264 (klein)</a> | <a $2>h.264 (mittel)</a> | <a $3>WebM (mittel)</a> | <a $4>h.264 (groß)</a> | <a $5>WebM (groß)</a> | <a $6>h.264 (HD)</a></blockquote>",
"");
?>

0 comments on commit 79c8886

Please sign in to comment.