mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
feat: updates
This commit is contained in:
parent
8f4c3d8e5b
commit
f340a90117
34 changed files with 781 additions and 323 deletions
|
|
@ -215,8 +215,12 @@ export class Player {
|
|||
*/
|
||||
private async _fetchAudioSource(trackID: TrackID) {
|
||||
const response = await fetchAudioSourceWithReactQuery({ id: trackID })
|
||||
let audio = response.data?.[0]?.url
|
||||
if (audio && audio.includes('126.net')) {
|
||||
audio = audio.replace('http://', 'https://')
|
||||
}
|
||||
return {
|
||||
audio: response.data?.[0]?.url,
|
||||
audio,
|
||||
id: trackID,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue