diff options
author | emkael <emkael@tlen.pl> | 2024-11-25 23:26:44 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2024-11-25 23:26:44 +0100 |
commit | 721bcc4f25a491f3877f05d202ceb5c04973157b (patch) | |
tree | bc21c14e2fa624ef5f5872683070e6818501c709 /providers/Youtube.php | |
parent | 901de87b4657fb0da08fc02368d684deece5ef13 (diff) |
Provider for YT videos
Diffstat (limited to 'providers/Youtube.php')
-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'; + } + +} + +?> |