fileinfo: Add flac and mp3 support

master
Jonatan Nilsson 2019-10-03 13:34:16 +00:00
parent feef1765bf
commit 8590f425c6
1 changed files with 6 additions and 0 deletions

View File

@ -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'
},