Recognize audio/aac as a MIME type for webstreams
This commit is contained in:
parent
59d7c23450
commit
05c9e21e48
|
@ -309,7 +309,7 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
|
||||||
$media_url = self::getXspfUrl($url);
|
$media_url = self::getXspfUrl($url);
|
||||||
} elseif (preg_match("/pls\+xml/", $mime) || preg_match("/x-scpls/", $mime)) {
|
} elseif (preg_match("/pls\+xml/", $mime) || preg_match("/x-scpls/", $mime)) {
|
||||||
$media_url = self::getPlsUrl($url);
|
$media_url = self::getPlsUrl($url);
|
||||||
} elseif (preg_match("/(mpeg|ogg|audio\/aacp)/", $mime)) {
|
} elseif (preg_match("/(mpeg|ogg|audio\/aacp|audio\/aac)/", $mime)) {
|
||||||
if ($content_length_found) {
|
if ($content_length_found) {
|
||||||
throw new Exception(_("Invalid webstream - This appears to be a file download."));
|
throw new Exception(_("Invalid webstream - This appears to be a file download."));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue