From 5c9bd98c12c958392a6ff0c77338732dac21237d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 25 Sep 2013 22:29:34 +0200 Subject: add article enhancer for use cad-comic.com --- utility/articleenhancer/cadenhancer.php | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 utility/articleenhancer/cadenhancer.php (limited to 'utility') diff --git a/utility/articleenhancer/cadenhancer.php b/utility/articleenhancer/cadenhancer.php new file mode 100644 index 000000000..9df7f5eaf --- /dev/null +++ b/utility/articleenhancer/cadenhancer.php @@ -0,0 +1,47 @@ +. + * + */ + +namespace OCA\News\Utility\ArticleEnhancer; + +use \OCA\News\Utility\SimplePieFileFactory; + + +class CADEnhancer extends ArticleEnhancer { + + + public function __construct(SimplePieFileFactory $fileFactory, $purifier, + $timeout){ + parent::__construct( + $purifier, + $fileFactory, + array( + '/cad-comic.com\/cad\/\d+\/$/' => '//*[@id=\'content\']/img' + ), + $timeout + ); + } + + +} -- cgit v1.2.3