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/fguillot/picofeed/lib | |
parent | 7e8d129c4c7dbbf77069681e909f89d1e40d8f2f (diff) |
update picofeed
Diffstat (limited to 'vendor/fguillot/picofeed/lib')
-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 |
2 files changed, 16 insertions, 1 deletions
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( + ), + ) + ) +); |