修复酷我源排行榜、歌单详情列表里的歌曲音质匹配问题

This commit is contained in:
lyswhut
2019-11-30 18:36:44 +08:00
parent ca56089a3e
commit 203dff8d98
3 changed files with 10 additions and 8 deletions
+3 -3
View File
@@ -186,19 +186,19 @@ export default {
let formats = item.formats.split('|')
let types = []
let _types = {}
if (formats.indexOf('MP3128')) {
if (formats.includes('MP3128')) {
types.push({ type: '128k', size: null })
_types['128k'] = {
size: null,
}
}
if (formats.indexOf('MP3H')) {
if (formats.includes('MP3H')) {
types.push({ type: '320k', size: null })
_types['320k'] = {
size: null,
}
}
if (formats.indexOf('ALFLAC')) {
if (formats.includes('ALFLAC')) {
types.push({ type: 'flac', size: null })
_types.flac = {
size: null,