summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRello <Rello@users.noreply.github.com>2017-08-31 17:48:49 +0200
committerJoas Schilling <coding@schilljs.com>2017-10-31 14:05:24 +0100
commitc5f76785ba143a569726fb4f6e9a9c7bafd50f1c (patch)
treea37b1225a9ba44fc2d0f70dd242465eb9fe5abd4 /lib
parent84f3d247f2e5ed8e2263f04a7570e6edfd50593a (diff)
downloadnextcloud-server-c5f76785ba143a569726fb4f6e9a9c7bafd50f1c.tar.gz
nextcloud-server-c5f76785ba143a569726fb4f6e9a9c7bafd50f1c.zip
Mapping of m3u, m3u8, pls to audio streams
Signed-Off-By: Rello <Rello@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Repair/RepairMimeTypes.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php
index 74d81be9834..e77c7a26812 100644
--- a/lib/private/Repair/RepairMimeTypes.php
+++ b/lib/private/Repair/RepairMimeTypes.php
@@ -149,6 +149,16 @@ class RepairMimeTypes implements IRepairStep {
$this->updateMimetypes($updatedMimetypes);
}
+ private function introduceStreamingTypes() {
+ $updatedMimetypes = [
+ 'm3u' => 'audio/mpegurl',
+ 'm3u8' => 'audio/mpegurl',
+ 'pls' => 'audio/x-scpls'
+ ];
+
+ $this->updateMimetypes($updatedMimetypes);
+ }
+
/**
* Fix mime types
*/
@@ -174,5 +184,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.3', '<') && $this->introduceInternetShortcutTypes()) {
$out->info('Fixed internet-shortcut mime types');
}
+
+ if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.6', '<') && $this->introduceStreamingTypes()) {
+ $out->info('Fixed streaming mime types');
+ }
}
}