Skip to content

Commit

Permalink
修复tx歌单
Browse files Browse the repository at this point in the history
  • Loading branch information
ikun0014 committed Sep 9, 2024
1 parent 68b380a commit 78d307d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/utils/musicSdk/tx/songList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ export default {
sortList: [
{
name: '最热',
tid: 'hot',
id: 5,
},
{
name: '最新',
tid: 'new',
id: 2,
},
],
Expand Down Expand Up @@ -173,10 +171,10 @@ export default {
if (retryNum > 2) return Promise.reject(new Error('link try max num'))

const requestObj_listDetailLink = httpFetch(link)
const { url, statusCode } = await requestObj_listDetailLink.promise
const { headers: { location }, statusCode } = await requestObj_listDetailLink.promise
// console.log(headers)
if (statusCode > 400) return this.handleParseId(link, ++retryNum)
return url
return location == null ? link : location
},

async getListId(id) {
Expand Down Expand Up @@ -258,13 +256,6 @@ export default {
size,
}
}
if (file.size_new[0] !== 0) {
let size = sizeFormate(file.size_new[0])
types.push({ type: 'master', size })
_types.master = {
size,
}
}
// types.reverse()
return {
singer: formatSingerName(item.singer, 'name'),
Expand Down

0 comments on commit 78d307d

Please sign in to comment.