From c27d492d488b58602d163d27844dbad4830f1fff Mon Sep 17 00:00:00 2001 From: Zed Date: Tue, 20 Jun 2017 20:27:58 +0200 Subject: [PATCH] Support more file extensions --- ui/js/lbry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/js/lbry.js b/ui/js/lbry.js index f4cd7ad67..286218532 100644 --- a/ui/js/lbry.js +++ b/ui/js/lbry.js @@ -319,11 +319,11 @@ lbry.getMediaType = function(contentType, fileName) { } var ext = fileName.substr(dotIndex + 1); - if (/^mp4|mov|m4v|flv|f4v$/i.test(ext)) { + if (/^mp4|m4v|mov|webm|flv|f4v|ogv$/i.test(ext)) { return "video"; - } else if (/^mp3|m4a|aac|wav|flac|ogg$/i.test(ext)) { + } else if (/^mp3|m4a|aac|wav|flac|ogg|opus$/i.test(ext)) { return "audio"; - } else if (/^html|htm|pdf|odf|doc|docx|md|markdown|txt$/i.test(ext)) { + } else if (/^html|htm|xml|pdf|odf|doc|docx|md|markdown|txt|org$/i.test(ext)) { return "document"; } else { return "unknown"; -- 2.45.2