code-snippets

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

commit 3f3e72b48d597e955541d2e931b1d9b91d28a061
parent ac4b8cdc3977b5465aa72d19c35546da9e47cef6
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Sun, 24 Nov 2019 15:40:52 +0100

Added filters to script

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

diff --git a/php/heise-rss/feed.php b/php/heise-rss/feed.php @@ -29,6 +29,15 @@ function filter_title($title) { if (strpos($title, 'Anzeige: ') !== false) { return true; } + if (strpos($title, '#heiseshow') !== false) { + return true; + } + if (strpos($title, 'c\'t uplink') !== false) { + return true; + } + if (strpos($title, 'c\'t zockt') !== false) { + return true; + } return false; }