summaryrefslogtreecommitdiff
path: root/providers/Youtube.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2024-11-25 23:26:44 +0100
committeremkael <emkael@tlen.pl>2024-11-25 23:26:44 +0100
commit721bcc4f25a491f3877f05d202ceb5c04973157b (patch)
treebc21c14e2fa624ef5f5872683070e6818501c709 /providers/Youtube.php
parent901de87b4657fb0da08fc02368d684deece5ef13 (diff)
Provider for YT videos
Diffstat (limited to 'providers/Youtube.php')
-rw-r--r--providers/Youtube.php19
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';
+ }
+
+}
+
+?>