code-snippets

Some maybe useful snippets of code
git clone https://git.ortlepp.eu/code-snippets.git/
Log | Files | Refs | README

commit 3f4aed7b52d7557354baa0bae957a983d14b4890
parent bf632d3b0972a4148f5f8dd27f3feb290b134abd
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Sat, 30 May 2020 16:11:57 +0200

Added more filters

Diffstat:
Mphp/rss-filter/heise.php | 3+++
Mphp/rss-filter/tagesschau.php | 3+++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/php/rss-filter/heise.php b/php/rss-filter/heise.php @@ -68,6 +68,9 @@ function filter_title($title) { if (strpos($title, 'c’t zockt') !== false) { return true; } + if (strpos($title, 'Developer Snapshots') !== false) { + return true; + } return false; } diff --git a/php/rss-filter/tagesschau.php b/php/rss-filter/tagesschau.php @@ -40,6 +40,9 @@ function filter_url($url) { if (strpos($url, 'ardmediathek.de') !== false) { return true; } + if (strpos($url, 'blog.tagesschau.de') !== false) { + return true; + } return false; }