summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-11 13:21:51 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-11 13:22:00 +0100
commitbff164146b101a18392f22cd942ec1c9a8589628 (patch)
treeaf4fe3e78cd0880656f0cbb4f2c4bdace35fea7b /appinfo
parentdf4cbdb81d6cf8ec532e099b44c9ec7d009f28c6 (diff)
add youtube playlist support, fix #620, fix #618
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/application.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index 84b0440f3..3820603b0 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -55,6 +55,7 @@ use \OCA\News\Utility\ProxyConfigParser;
use \OCA\News\Fetcher\Fetcher;
use \OCA\News\Fetcher\FeedFetcher;
+use \OCA\News\Fetcher\YoutubeFetcher;
use \OCA\News\ArticleEnhancer\Enhancer;
use \OCA\News\ArticleEnhancer\GlobalArticleEnhancer;
@@ -466,6 +467,7 @@ class Application extends App {
// register fetchers in order
// the most generic fetcher should be the last one
+ $fetcher->registerFetcher($c->query('YoutubeFetcher'));
$fetcher->registerFetcher($c->query('FeedFetcher'));
return $fetcher;
@@ -480,6 +482,12 @@ class Application extends App {
);
});
+ $container->registerService('YoutubeFetcher', function($c) {
+ return new YoutubeFetcher(
+ $c->query('FeedFetcher')
+ );
+ });
+
$container->registerService('StatusFlag', function() {
return new StatusFlag();
});