fileinfo: Add flac and mp3 support

This commit is contained in:
Jonatan Nilsson 2019-10-03 13:34:16 +00:00
parent feef1765bf
commit 8590f425c6

View file

@ -12,6 +12,12 @@ const Fileinfo = {
if (vnode.attrs.file.filename.indexOf('480 ') >= 0) { if (vnode.attrs.file.filename.indexOf('480 ') >= 0) {
return '480p' return '480p'
} }
if (vnode.attrs.file.filename.indexOf('FLAC') >= 0) {
return 'FLAC'
}
if (vnode.attrs.file.filename.indexOf('MP3') >= 0) {
return 'MP3'
}
return 'Other' return 'Other'
}, },