diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-26 11:31:17 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-26 11:31:17 +0100 |
commit | 4cd84306ff1bb897bdec9c6a0deb3aee924bc51f (patch) | |
tree | 2d8f973f091a179be58f7b4776fdcd2e393943c9 /vendor/fguillot/picofeed | |
parent | 2edae61620ed20efcc5ef55576950b8f92044fc3 (diff) |
update picofeed
Diffstat (limited to 'vendor/fguillot/picofeed')
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php | 1 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Rules/openrightsgroup.org.php | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php b/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php index 4e4658639..2b0d7e1c0 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php @@ -160,7 +160,6 @@ class Curl extends Client curl_setopt($ch, CURLOPT_URL, $this->url); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeout); - curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); curl_setopt($ch, CURLOPT_HTTPHEADER, $this->prepareHeaders()); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, ini_get('open_basedir') === ''); curl_setopt($ch, CURLOPT_MAXREDIRS, $this->max_redirects); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/openrightsgroup.org.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/openrightsgroup.org.php new file mode 100644 index 000000000..74d3fa16d --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/openrightsgroup.org.php @@ -0,0 +1,16 @@ +<?php +return array( + 'test_url' => 'https://www.openrightsgroup.org/blog/2014/3-days-to-go-till-orgcon2014', + 'body' => array( + '//div[contains(@class, "content")]/div', + ), + 'strip' => array( + '//h2[1]', + '//div[@class="info"]', + '//div[@class="tags"]', + '//div[@class="comments"]', + '//div[@class="breadcrumbs"]', + '//h1[@class="pageTitle"]', + '//p[@class="bookmarkThis"]', + ), +);
\ No newline at end of file |