diff options
-rw-r--r-- | providers/Youtube.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/providers/Youtube.php b/providers/Youtube.php new file mode 100644 index 0000000..bd38a52 --- /dev/null +++ b/providers/Youtube.php @@ -0,0 +1,19 @@ +<?php + +namespace Providers; + +require_once('Rss.php'); + +class Youtube extends Rss { + + protected function _getFeedUrl($feed) { + return 'https://www.youtube.com/feeds/videos.xml?channel_id=' . $feed; + } + + protected function _getCachePath() { + return '../cache/youtube.%s'; + } + +} + +?> |