新增网易云、酷狗排行榜音乐直接试听下载
This commit is contained in:
@@ -3,8 +3,14 @@
|
||||
* @param {*} info
|
||||
* @param {*} type
|
||||
*/
|
||||
|
||||
const types = ['flac', 'ape', '320k', '192k', '128k']
|
||||
export const getMusicType = (info, type) => {
|
||||
switch (window.globalObj.apiSource) {
|
||||
case 'kg':
|
||||
case 'wy':
|
||||
return '128k'
|
||||
}
|
||||
const rangeType = types.slice(types.indexOf(type))
|
||||
for (const type of rangeType) {
|
||||
if (info._types[type]) return type
|
||||
|
||||
Reference in New Issue
Block a user