From d5a62cb1a73ca29381147bdd22fbf0245ea4e933 Mon Sep 17 00:00:00 2001 From: Borewit Date: Tue, 6 Feb 2018 14:17:59 +0100 Subject: [PATCH] Add additional audio extensions: 'aiff', 'ape', 'mp2', 'oga', 'opus', 'wma' --- src/renderer/lib/torrent-player.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/renderer/lib/torrent-player.js b/src/renderer/lib/torrent-player.js index 6a77d25b..723d2cfa 100644 --- a/src/renderer/lib/torrent-player.js +++ b/src/renderer/lib/torrent-player.js @@ -33,12 +33,18 @@ function isVideo (file) { function isAudio (file) { return [ '.aac', + '.aiff', + '.ape', '.ac3', - '.mp3', - '.ogg', - '.wav', '.flac', - '.m4a' + '.m4a', + '.mp2', + '.mp3', + '.oga', + '.ogg', + '.opus', + '.wav', + '.wma' ].includes(getFileExtension(file)) }