summaryrefslogtreecommitdiffstats
path: root/fetcher
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2014-07-30 11:22:44 +0200
committerBernhard Posselt <Raydiation@users.noreply.github.com>2014-07-30 11:22:44 +0200
commit713b71a33ca0521417504aaa4fb90c93805a4a55 (patch)
treebf25a31e1ae74f25d38da8196cdef0ab85320028 /fetcher
parent8251981a398a489b82cca87d1b0140bffaab6956 (diff)
Revert "Fix audio tag and basic video enclosure support"
Diffstat (limited to 'fetcher')
-rw-r--r--fetcher/feedfetcher.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php
index 643f37282..9c2049395 100644
--- a/fetcher/feedfetcher.php
+++ b/fetcher/feedfetcher.php
@@ -160,10 +160,14 @@ class FeedFetcher implements IFeedFetcher {
}
}
+ // TODO: make it work for video files also
$enclosure = $simplePieItem->get_enclosure();
if($enclosure !== null) {
- $item->setEnclosureMime($enclosure->get_type());
- $item->setEnclosureLink($enclosure->get_link());
+ $enclosureType = $enclosure->get_type();
+ if(stripos($enclosureType, "audio/") !== false) {
+ $item->setEnclosureMime($enclosureType);
+ $item->setEnclosureLink($enclosure->get_link());
+ }
}
return $item;