code-snippets

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

commit 986c9074662737c99de2027f57c171a2296f815f
parent 8aff53a757d539b765946b552c009d5b466442fa
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Sat, 23 May 2020 16:05:30 +0200

Added new filters

Diffstat:
Mphp/heise-rss/feed.php | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)

diff --git a/php/heise-rss/feed.php b/php/heise-rss/feed.php @@ -41,6 +41,33 @@ function filter_title($title) { if (strpos($title, 'Kurz informiert') !== false) { return true; } + if (strpos($title, 'Werkstattberichte') !== false) { + return true; + } + if (strpos($title, 'Bilder der Woche') !== false) { + return true; + } + if (strpos($title, 'Mac & i') !== false) { + return true; + } + if (strpos($title, 'TGIQF') !== false) { + return true; + } + if (strpos($title, 'angespielt') !== false) { + return true; + } + if (strpos($title, 'Was war. Was wird.') !== false) { + return true; + } + if (strpos($title, 'ct uplink') !== false) { + return true; + } + if (strpos($title, 'c’t uplink') !== false) { + return true; + } + if (strpos($title, 'c’t zockt') !== false) { + return true; + } return false; } @@ -58,6 +85,9 @@ function filter_url($url) { if (strpos($url, '/mac-and-i/') !== false) { return true; } + if (strpos($url, '/download/blog/') !== false) { + return true; + } return false; }