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