From 185a773e7407abb378b5c529d66d1e32bfe13307 Mon Sep 17 00:00:00 2001 From: fulmeek <36341513+fulmeek@users.noreply.github.com> Date: Wed, 26 Dec 2018 21:11:45 +0100 Subject: [PATCH] [DilbertBridge] Fixed URI and item title (#976) --- bridges/DilbertBridge.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/DilbertBridge.php b/bridges/DilbertBridge.php index a84e5e87..7069ee41 100644 --- a/bridges/DilbertBridge.php +++ b/bridges/DilbertBridge.php @@ -3,7 +3,7 @@ class DilbertBridge extends BridgeAbstract { const MAINTAINER = 'kranack'; const NAME = 'Dilbert Daily Strip'; - const URI = 'http://dilbert.com'; + const URI = 'https://dilbert.com'; const CACHE_TIMEOUT = 21600; // 6h const DESCRIPTION = 'The Unofficial Dilbert Daily Comic Strip'; @@ -17,9 +17,9 @@ class DilbertBridge extends BridgeAbstract { $img = $element->find('img', 0); $link = $element->find('a', 0); $comic = $img->src; - $title = $link->alt; + $title = $img->alt; $url = $link->href; - $date = substr($url, 25); + $date = substr(strrchr($url, '/'), 1); if (empty($title)) $title = 'Dilbert Comic Strip on ' . $date; $date = strtotime($date);