mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 03:14:57 +08:00
fix: 修复下载歌曲异常 #43
This commit is contained in:
@@ -96,7 +96,7 @@ const toSongDownload = (id, br, name) => {
|
||||
if (res.data.url) {
|
||||
const type = res.data.type.toLowerCase();
|
||||
const songName = name ? name : t("general.name.unknownSong");
|
||||
fetch(res.data.url)
|
||||
fetch(res.data.url.replace(/^http:/, "https:"))
|
||||
.then((response) => response.blob())
|
||||
.then((blob) => {
|
||||
const url = window.URL.createObjectURL(blob);
|
||||
|
||||
Reference in New Issue
Block a user