diff options
| author | 2018-06-06 21:29:22 +0200 | |
|---|---|---|
| committer | 2018-06-06 21:29:22 +0200 | |
| commit | 7ab4a2609a4db8babb968f79cc2832ec0a02ce09 (patch) | |
| tree | b31dc9fff8eb0a5b537d1d1a9a369a384716b6dd /lib | |
| parent | afad1d11af812538fe01d274ac3b9311e033e5a6 (diff) | |
Support for media: tags (#1920)
* Support for media: tags
https://github.com/FreshRSS/FreshRSS/issues/944
E.g. YouTube
* Fix for medium attribute
* Changelog 944
https://github.com/FreshRSS/FreshRSS/issues/944
https://github.com/FreshRSS/FreshRSS/pull/1920
* enclosure styling
* Compatibility old enclosure content
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/SimplePie/SimplePie.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/SimplePie/SimplePie.php b/lib/SimplePie/SimplePie.php index 5cd445b6d..b591bcddd 100644 --- a/lib/SimplePie/SimplePie.php +++ b/lib/SimplePie/SimplePie.php @@ -1322,7 +1322,12 @@ class SimplePie function cleanMd5($rss) { - return md5(preg_replace(array('#<(lastBuildDate|pubDate|updated|feedDate|dc:date|slash:comments)>[^<]+</\\1>#', '#<!--.+?-->#s'), '', $rss)); + return md5(preg_replace(array( + '#<(lastBuildDate|pubDate|updated|feedDate|dc:date|slash:comments)>[^<]+</\\1>#', + '#<(media:starRating|media:statistics) [^/<>]+/>#', + '#<!--.+?-->#s', + ), '', $rss)); + } /** |
