mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
炫酷
This commit is contained in:
parent
cf1f5ca1bf
commit
e9511bb28c
@ -151,11 +151,11 @@ globalThis.lx_setup = (key, id, name, description, version, author, homepage, ra
|
|||||||
}
|
}
|
||||||
const allSources = ['kw', 'kg', 'tx', 'wy', 'mg', 'local']
|
const allSources = ['kw', 'kg', 'tx', 'wy', 'mg', 'local']
|
||||||
const supportQualitys = {
|
const supportQualitys = {
|
||||||
kw: ['128k', '320k', 'flac', 'flac24bit'],
|
kw: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
kg: ['128k', '320k', 'flac', 'flac24bit'],
|
kg: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
tx: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
tx: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
wy: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
wy: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
mg: ['128k', '320k', 'flac', 'flac24bit'],
|
mg: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
local: [],
|
local: [],
|
||||||
}
|
}
|
||||||
const supportActions = {
|
const supportActions = {
|
||||||
|
@ -15,7 +15,10 @@ export const ITEM_HEIGHT = scaleSizeH(LIST_ITEM_HEIGHT)
|
|||||||
const useQualityTag = (musicInfo: LX.Music.MusicInfoOnline) => {
|
const useQualityTag = (musicInfo: LX.Music.MusicInfoOnline) => {
|
||||||
const t = useI18n()
|
const t = useI18n()
|
||||||
let info: { type: BadgeType | null, text: string } = { type: null, text: '' }
|
let info: { type: BadgeType | null, text: string } = { type: null, text: '' }
|
||||||
if (musicInfo.meta._qualitys.flac24bit) {
|
if (musicInfo.meta._qualitys.master) {
|
||||||
|
info.type = 'secondary'
|
||||||
|
info.text = t('quality_lossless_master')
|
||||||
|
} else if (musicInfo.meta._qualitys.flac24bit) {
|
||||||
info.type = 'secondary'
|
info.type = 'secondary'
|
||||||
info.text = t('quality_lossless_24bit')
|
info.text = t('quality_lossless_24bit')
|
||||||
} else if (musicInfo.meta._qualitys.flac ?? musicInfo.meta._qualitys.ape) {
|
} else if (musicInfo.meta._qualitys.flac ?? musicInfo.meta._qualitys.ape) {
|
||||||
|
@ -12,7 +12,7 @@ export const sourceVerify = source => {
|
|||||||
if (!sources.includes(source)) throw new Error('Source no match')
|
if (!sources.includes(source)) throw new Error('Source no match')
|
||||||
}
|
}
|
||||||
|
|
||||||
export const qualitys = ['128k', '320k', 'flac', 'flac24bit']
|
export const qualitys = ['128k', '320k', 'flac', 'flac24bit', 'master']
|
||||||
export const qualityFilter = (source, types) => {
|
export const qualityFilter = (source, types) => {
|
||||||
types = types.filter(({ type }) => qualitys.includes(type)).map(({ type, size, hash }) => {
|
types = types.filter(({ type }) => qualitys.includes(type)).map(({ type, size, hash }) => {
|
||||||
if (size != null && typeof size != 'string') throw new Error(type + ' size type no match')
|
if (size != null && typeof size != 'string') throw new Error(type + ' size type no match')
|
||||||
|
@ -205,7 +205,7 @@
|
|||||||
"quality_high_quality": "HQ",
|
"quality_high_quality": "HQ",
|
||||||
"quality_lossless": "SQ",
|
"quality_lossless": "SQ",
|
||||||
"quality_lossless_24bit": "Hires",
|
"quality_lossless_24bit": "Hires",
|
||||||
"quality_master": "Master",
|
"quality_lossless_master": "Master",
|
||||||
"search__welcome": "Search what I want~~😉",
|
"search__welcome": "Search what I want~~😉",
|
||||||
"search_history_search": "History search",
|
"search_history_search": "History search",
|
||||||
"search_hot_search": "popular searches",
|
"search_hot_search": "popular searches",
|
||||||
|
@ -205,7 +205,7 @@
|
|||||||
"quality_high_quality": "HQ",
|
"quality_high_quality": "HQ",
|
||||||
"quality_lossless": "SQ",
|
"quality_lossless": "SQ",
|
||||||
"quality_lossless_24bit": "Hires",
|
"quality_lossless_24bit": "Hires",
|
||||||
"quality_master": "臻品母带",
|
"quality_lossless_master": "臻品母带",
|
||||||
"search__welcome": "搜我所想~~😉",
|
"search__welcome": "搜我所想~~😉",
|
||||||
"search_history_search": "历史搜索",
|
"search_history_search": "历史搜索",
|
||||||
"search_hot_search": "热门搜索",
|
"search_hot_search": "热门搜索",
|
||||||
|
@ -11,11 +11,11 @@ const sources: Array<{
|
|||||||
name: 'ikun公益音源',
|
name: 'ikun公益音源',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
supportQualitys: {
|
supportQualitys: {
|
||||||
kw: ['128k', '320k', 'flac', 'flac24bit'],
|
kw: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
kg: ['128k', '320k', 'flac', 'flac24bit'],
|
kg: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
tx: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
tx: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
wy: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
wy: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
mg: ['128k', '320k', 'flac', 'flac24bit'],
|
mg: ['128k', '320k', 'flac', 'flac24bit', 'master'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -139,7 +139,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (file.size_new[0] !== 0) {
|
if (file.size_new[0] !== 0) {
|
||||||
let size = sizeFormate(file.size_new)
|
let size = sizeFormate(file.size_new[0])
|
||||||
types.push({ type: 'master', size })
|
types.push({ type: 'master', size })
|
||||||
_types.master = {
|
_types.master = {
|
||||||
size,
|
size,
|
||||||
|
@ -69,7 +69,7 @@ export default (songmid) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (file.size_new[0] !== 0) {
|
if (file.size_new[0] !== 0) {
|
||||||
let size = sizeFormate(file.size_new)
|
let size = sizeFormate(file.size_new[0])
|
||||||
types.push({ type: 'master', size })
|
types.push({ type: 'master', size })
|
||||||
_types.master = {
|
_types.master = {
|
||||||
size,
|
size,
|
||||||
|
@ -87,7 +87,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (file.size_new[0] !== 0) {
|
if (file.size_new[0] !== 0) {
|
||||||
let size = sizeFormate(file.size_new)
|
let size = sizeFormate(file.size_new[0])
|
||||||
types.push({ type: 'master', size })
|
types.push({ type: 'master', size })
|
||||||
_types.master = {
|
_types.master = {
|
||||||
size,
|
size,
|
||||||
|
@ -259,7 +259,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (file.size_new[0] !== 0) {
|
if (file.size_new[0] !== 0) {
|
||||||
let size = sizeFormate(file.size_new)
|
let size = sizeFormate(file.size_new[0])
|
||||||
types.push({ type: 'master', size })
|
types.push({ type: 'master', size })
|
||||||
_types.master = {
|
_types.master = {
|
||||||
size,
|
size,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user