Skip to content

Commit

Permalink
feat: migu歌曲链接改用标清高清
Browse files Browse the repository at this point in the history
  • Loading branch information
zonemeen committed Nov 2, 2023
1 parent 5b652e4 commit 7d1daeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/search/migu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async ({ text, pageNum, pageSize, songListId }: SearchProps) => {
const { pathname } = new URL(audioUrl || 'https://music.migu.cn/')
const url = decodeURIComponent(`https://freetyst.nf.migu.cn${pathname}`).replace(
'彩铃/6_mp3-128kbps',
'全曲试听/Mp3_64_22_16'
'标清高清/MP3_320_16_Stero'
)
const size = audioUrl ? await getSongSizeByUrl(url) : 0
const fileType = audioUrl?.replace(/.+\.(mp3|flac)/, '$1') ?? 'mp3'
Expand Down

0 comments on commit 7d1daeb

Please sign in to comment.