Skip to content

Commit

Permalink
[DilbertBridge] Fixed URI and item title (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmeek authored and logmanoriginal committed Dec 26, 2018
1 parent 10659dd commit 185a773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridges/DilbertBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -17,9 +17,9 @@ public function collectData(){
$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);
Expand Down

0 comments on commit 185a773

Please sign in to comment.