From 8590f425c605652596d6bb1623a3514e6ab53873 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 3 Oct 2019 13:34:16 +0000 Subject: [PATCH] fileinfo: Add flac and mp3 support --- app/widgets/fileinfo.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/widgets/fileinfo.js b/app/widgets/fileinfo.js index 27a41d9..79b9ec9 100644 --- a/app/widgets/fileinfo.js +++ b/app/widgets/fileinfo.js @@ -12,6 +12,12 @@ const Fileinfo = { if (vnode.attrs.file.filename.indexOf('480 ') >= 0) { return '480p' } + if (vnode.attrs.file.filename.indexOf('FLAC') >= 0) { + return 'FLAC' + } + if (vnode.attrs.file.filename.indexOf('MP3') >= 0) { + return 'MP3' + } return 'Other' },