summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-03-26 21:46:35 +0100
committeremkael <emkael@tlen.pl>2019-03-26 21:46:35 +0100
commit5e4abc17872983e0c3f14a75f6331b804cff98d5 (patch)
treeb4a370731e78fef40142cf83a1b9cb2d4409a5d5
parenta799dd5738d486c6bf64ab9c0a14f172e8f3b33c (diff)
PZBS feeds proxied
-rw-r--r--config/rss.jsonbin412 -> 536 bytes
-rw-r--r--providers/Pzbs.php20
2 files changed, 20 insertions, 0 deletions
diff --git a/config/rss.json b/config/rss.json
index 9870e0a..bf41eba 100644
--- a/config/rss.json
+++ b/config/rss.json
Binary files differ
diff --git a/providers/Pzbs.php b/providers/Pzbs.php
new file mode 100644
index 0000000..c37edee
--- /dev/null
+++ b/providers/Pzbs.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace Providers;
+
+require_once('Rss.php');
+require_once('Item.php');
+
+class Pzbs extends \Providers\Rss {
+
+ protected function _getFeedUrl($feed) {
+ return sprintf('https://www.pzbs.pl/%s?format=feed&type=rss', $feed);
+ }
+
+ protected function _getCachePath() {
+ return '../cache/pzbs.%s';
+ }
+
+}
+
+?>