fileinfo: Add more prefix supports
This commit is contained in:
parent
8590f425c6
commit
7f26c403e8
1 changed files with 8 additions and 2 deletions
|
@ -12,12 +12,18 @@ const Fileinfo = {
|
|||
if (vnode.attrs.file.filename.indexOf('480 ') >= 0) {
|
||||
return '480p'
|
||||
}
|
||||
if (vnode.attrs.file.filename.indexOf('FLAC') >= 0) {
|
||||
if (vnode.attrs.file.filename.toLowerCase().indexOf('flac') >= 0) {
|
||||
return 'FLAC'
|
||||
}
|
||||
if (vnode.attrs.file.filename.indexOf('MP3') >= 0) {
|
||||
if (vnode.attrs.file.filename.toLowerCase().indexOf('mp3') >= 0) {
|
||||
return 'MP3'
|
||||
}
|
||||
if (vnode.attrs.file.filename.toLowerCase().indexOf('psd') >= 0) {
|
||||
return 'PSD'
|
||||
}
|
||||
if (vnode.attrs.file.filename.toLowerCase().indexOf('.zip') >= 0) {
|
||||
return 'ZIP'
|
||||
}
|
||||
return 'Other'
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue