From 235c084820cab9a75c88e46e5feda046cc63178f Mon Sep 17 00:00:00 2001 From: ORelio Date: Wed, 26 Jul 2023 20:41:48 +0200 Subject: [PATCH] [DilbertBridge] Remove bridge (#3574) dilbert.com has closed down. --- bridges/DilbertBridge.php | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 bridges/DilbertBridge.php diff --git a/bridges/DilbertBridge.php b/bridges/DilbertBridge.php deleted file mode 100644 index cd509ea4..00000000 --- a/bridges/DilbertBridge.php +++ /dev/null @@ -1,36 +0,0 @@ -find('section.comic-item') as $element) { - $img = $element->find('img', 0); - $link = $element->find('a', 0); - $comic = $img->src; - $title = $img->alt; - $url = $link->href; - $date = substr(strrchr($url, '/'), 1); - if (empty($title)) { - $title = 'Dilbert Comic Strip on ' . $date; - } - $date = strtotime($date); - - $item = []; - $item['uri'] = $url; - $item['title'] = $title; - $item['author'] = 'Scott Adams'; - $item['timestamp'] = $date; - $item['content'] = '' . $img->alt . ''; - $this->items[] = $item; - } - } -}