diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-09 13:41:47 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-09 13:41:47 +0100 |
commit | 54f9b41bdaf7d53e98592e5a431e3c3a1440889a (patch) | |
tree | 9732cb1c7883037ffba14639f5a6e2e53a6b61c9 /vendor | |
parent | 7e8d129c4c7dbbf77069681e909f89d1e40d8f2f (diff) |
update picofeed
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/composer/installed.json | 8 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Reader/Favicon.php | 3 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php | 14 |
3 files changed, 20 insertions, 5 deletions
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 86f3be720..17aa54be6 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -209,12 +209,12 @@ "source": { "type": "git", "url": "https://github.com/fguillot/picoFeed.git", - "reference": "04cc8d395e626d7d75388d904afa1112f61c23b7" + "reference": "0551e86dbaa77b997d08df9c3fc456875df6efa0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/04cc8d395e626d7d75388d904afa1112f61c23b7", - "reference": "04cc8d395e626d7d75388d904afa1112f61c23b7", + "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/0551e86dbaa77b997d08df9c3fc456875df6efa0", + "reference": "0551e86dbaa77b997d08df9c3fc456875df6efa0", "shasum": "" }, "require": { @@ -229,7 +229,7 @@ "suggest": { "ext-curl": "PicoFeed will use cURL if present" }, - "time": "2016-01-03 02:14:59", + "time": "2016-01-08 20:39:51", "bin": [ "picofeed" ], diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Reader/Favicon.php b/vendor/fguillot/picofeed/lib/PicoFeed/Reader/Favicon.php index cab74b6aa..53c5cf7a4 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Reader/Favicon.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Reader/Favicon.php @@ -30,6 +30,7 @@ class Favicon 'image/x-icon', 'image/jpeg', 'image/jpg', + 'image/svg+xml' ); /** @@ -195,7 +196,7 @@ class Favicon $dom = XmlParser::getHtmlDocument($html); $xpath = new DOMXpath($dom); - $elements = $xpath->query("//link[contains(@rel, 'icon') and not(contains(@rel, 'apple'))]"); + $elements = $xpath->query('//link[@rel="icon" or @rel="shortcut icon" or @rel="icon shortcut"]'); for ($i = 0; $i < $elements->length; ++$i) { $icons[] = $elements->item($i)->getAttribute('href'); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php new file mode 100644 index 000000000..b56a29b51 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php @@ -0,0 +1,14 @@ +<?php +return array( + 'grabber' => array( + '%.*%' => array( + 'test_url' => 'http://www.franceculture.fr/emission-culture-eco-la-finance-aime-toujours-la-france-2016-01-08', + 'body' => array( + '//div[@class="listen"]', + '//div[@class="field-items"]', + ), + 'strip' => array( + ), + ) + ) +); |