Selaa lähdekoodia

Add audio control for podcasts

https://github.com/marienfressinaud/FreshRSS/issues/504
Alexandre Alapetite 12 vuotta sitten
vanhempi
commit
7f1c305c86
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      app/Models/Feed.php

+ 2 - 0
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" />';
 					}
 				}
 			}