summaryrefslogtreecommitdiffstats
path: root/fetcher
diff options
context:
space:
mode:
Diffstat (limited to 'fetcher')
-rw-r--r--fetcher/feedfetcher.php2
-rw-r--r--fetcher/youtubefetcher.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php
index 815c0e4f4..2d3cdb0ba 100644
--- a/fetcher/feedfetcher.php
+++ b/fetcher/feedfetcher.php
@@ -172,6 +172,8 @@ class FeedFetcher implements IFeedFetcher {
}
}
+ $item->generateSearchIndex();
+
return $item;
}
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;
}