summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php1
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/openrightsgroup.org.php16
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