aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-05-13 22:30:24 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-05-13 22:30:24 +0200
commit7f1c305c869ee315131b7ade7abc99f23106d95b (patch)
tree96fc09e97d4911e0f7ef8f7f80f2541d3725100d /app/Models/Feed.php
parente763cd407a57e4829c2b6ffbddb164e5676670d7 (diff)
Add audio control for podcasts
https://github.com/marienfressinaud/FreshRSS/issues/504
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 13d3dfe88..116f96562 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -259,6 +259,8 @@ class FreshRSS_Feed extends Minz_Model {
$mime = strtolower($enclosure->get_type());
if (strpos($mime, 'image/') === 0) {
$content .= '<br /><img src="' . $elink . '" alt="" />';
+ } elseif (strpos($mime, 'audio/') === 0) {
+ $content .= '<br /><audio src="' . $elink . '" controls="controls" />';
}
}
}