新增酷狗排行榜其他音质下载
parent
16bb23b8a7
commit
063bbc9f06
|
@ -1,3 +1,3 @@
|
||||||
### 修复
|
### 新增
|
||||||
|
|
||||||
- 修复音量条主题适配
|
- 新增酷狗排行榜其他音质下载
|
||||||
|
|
|
@ -380,7 +380,7 @@ export default {
|
||||||
getPlayType(highQuality, songInfo) {
|
getPlayType(highQuality, songInfo) {
|
||||||
switch (songInfo.source) {
|
switch (songInfo.source) {
|
||||||
case 'wy':
|
case 'wy':
|
||||||
case 'kg':
|
// case 'kg':
|
||||||
return '128k'
|
return '128k'
|
||||||
}
|
}
|
||||||
let type = songInfo._types['192k'] ? '192k' : '128k'
|
let type = songInfo._types['192k'] ? '192k' : '128k'
|
||||||
|
|
|
@ -5,7 +5,7 @@ material-modal(:show="show" :bg-close="bgClose" @close="handleClose")
|
||||||
| {{ info.name }}
|
| {{ info.name }}
|
||||||
br
|
br
|
||||||
| {{ info.singer }}
|
| {{ info.singer }}
|
||||||
material-btn(:class="$style.btn" :title="!checkSource(type.type) && '目前酷狗、网易云音源仅支持下载128k音质'" :disabled="!checkSource(type.type)" :key="type.type" @click="handleClick(type.type)" v-for="type in info.types") {{getTypeName(type.type)}} {{ type.type.toUpperCase() }}{{ type.size && ` - ${type.size.toUpperCase()}` }}
|
material-btn(:class="$style.btn" :title="!checkSource(type.type) && '目前网易云音源仅支持下载128k音质'" :disabled="!checkSource(type.type)" :key="type.type" @click="handleClick(type.type)" v-for="type in info.types") {{getTypeName(type.type)}} {{ type.type.toUpperCase() }}{{ type.size && ` - ${type.size.toUpperCase()}` }}
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ export default {
|
||||||
checkSource(type) {
|
checkSource(type) {
|
||||||
switch (this.musicInfo.source) {
|
switch (this.musicInfo.source) {
|
||||||
case 'wy':
|
case 'wy':
|
||||||
case 'kg':
|
// case 'kg':
|
||||||
return type == '128k'
|
return type == '128k'
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
const types = ['flac', 'ape', '320k', '192k', '128k']
|
const types = ['flac', 'ape', '320k', '192k', '128k']
|
||||||
export const getMusicType = (info, type) => {
|
export const getMusicType = (info, type) => {
|
||||||
switch (window.globalObj.apiSource) {
|
switch (window.globalObj.apiSource) {
|
||||||
case 'kg':
|
// case 'kg':
|
||||||
case 'wy':
|
case 'wy':
|
||||||
return '128k'
|
return '128k'
|
||||||
}
|
}
|
||||||
|
|
|
@ -195,7 +195,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleAddDownloadMultiple(type) {
|
handleAddDownloadMultiple(type) {
|
||||||
switch (this.source) {
|
switch (this.source) {
|
||||||
case 'kg':
|
// case 'kg':
|
||||||
case 'wy':
|
case 'wy':
|
||||||
type = '128k'
|
type = '128k'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue