aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-25 12:41:08 -0800
committerfriendica <info@friendica.com>2015-01-25 12:41:08 -0800
commit4776f62be9066a0e35a3b578a7502336effbb6a9 (patch)
treeef6964322b0520c921b4aac6db0a5d7267c19dbd
parentb3370243e8ac7100ea73aa4a78904311067dcc05 (diff)
downloadvolse-hubzilla-4776f62be9066a0e35a3b578a7502336effbb6a9.tar.gz
volse-hubzilla-4776f62be9066a0e35a3b578a7502336effbb6a9.tar.bz2
volse-hubzilla-4776f62be9066a0e35a3b578a7502336effbb6a9.zip
recognise opus as an audio file
-rw-r--r--include/bbcode.php2
-rwxr-xr-xinclude/oembed.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 33017c011..5504dce7a 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -746,7 +746,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
$Text = preg_replace_callback("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4))\[\/video\]/ism", 'tryzrlvideo', $Text);
}
if (strpos($Text,'[/audio]') !== false) {
- $Text = preg_replace_callback("/\[audio\](.*?\.(ogg|ogv|oga|ogm|webm|mp4|mp3))\[\/audio\]/ism", 'tryzrlaudio', $Text);
+ $Text = preg_replace_callback("/\[audio\](.*?\.(ogg|ogv|oga|ogm|webm|mp4|mp3|opus))\[\/audio\]/ism", 'tryzrlaudio', $Text);
}
// Try to Oembed
diff --git a/include/oembed.php b/include/oembed.php
index e08b287d1..38c433e99 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -21,7 +21,7 @@ function oembed_fetch_url($embedurl){
// These media files should now be caught in bbcode.php
// left here as a fallback in case this is called from another source
- $noexts = array("mp3","mp4","ogg","ogv","oga","ogm","webm");
+ $noexts = array("mp3","mp4","ogg","ogv","oga","ogm","webm","opus");
$ext = pathinfo(strtolower($embedurl),PATHINFO_EXTENSION);