From fda59206ea2ab254379c0875f786f0046230fa35 Mon Sep 17 00:00:00 2001 From: Kevin C Date: Mon, 26 Apr 2021 11:35:49 +0200 Subject: [PATCH] Update Feed.class.php Add audio enclosure support for some ogg audio feeds such as: https://www.april.org/taxonomy/term/1908/all/feed --- Feed.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Feed.class.php b/Feed.class.php index a7f41559..6dbec0ca 100644 --- a/Feed.class.php +++ b/Feed.class.php @@ -178,7 +178,7 @@ protected function getEnclosureHtml($enclosure) { $enclosureType = $enclosure->get_type(); if (strpos($enclosureType, 'image/') === 0) { $html .= ''; - } elseif (strpos($enclosureType, 'audio/') === 0) { + } elseif (strpos($enclosureType, 'audio/') === 0 || strpos($enclosureType, 'application/ogg') === 0) { $html .= ''; } elseif (strpos($enclosureType, 'video/') === 0) { $html .= '';