From 8afd5adfcf6f7ec78eddb96b77efcd316a0a0293 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 22 Mar 2015 16:06:19 +0100 Subject: fix scrutinizer warnings --- fetcher/youtubefetcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fetcher/youtubefetcher.php') diff --git a/fetcher/youtubefetcher.php b/fetcher/youtubefetcher.php index cc96e987f..33a7671a4 100644 --- a/fetcher/youtubefetcher.php +++ b/fetcher/youtubefetcher.php @@ -29,7 +29,7 @@ class YoutubeFetcher implements IFeedFetcher { $id = $matches[1]; return 'http://gdata.youtube.com/feeds/api/playlists/' . $id; } else { - return false; + return $url; } } @@ -38,7 +38,7 @@ class YoutubeFetcher implements IFeedFetcher { * This fetcher handles all the remaining urls therefore always returns true */ public function canHandle($url){ - return $this->buildUrl($url) !== false; + return $this->buildUrl($url) !== $url; } -- cgit v1.2.3