diff options
author | emkael <emkael@tlen.pl> | 2019-03-26 21:46:35 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-03-26 21:46:35 +0100 |
commit | 5e4abc17872983e0c3f14a75f6331b804cff98d5 (patch) | |
tree | b4a370731e78fef40142cf83a1b9cb2d4409a5d5 | |
parent | a799dd5738d486c6bf64ab9c0a14f172e8f3b33c (diff) |
PZBS feeds proxied
-rw-r--r-- | config/rss.json | bin | 412 -> 536 bytes | |||
-rw-r--r-- | providers/Pzbs.php | 20 |
2 files changed, 20 insertions, 0 deletions
diff --git a/config/rss.json b/config/rss.json Binary files differindex 9870e0a..bf41eba 100644 --- a/config/rss.json +++ b/config/rss.json 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'; + } + +} + +?> |