Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Commit 46c8683

Browse files
committed
Fix song split
1 parent d4e25a8 commit 46c8683

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/music/SDKMusic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class SDKMusic {
7777
songs: songs
7878
},
7979
() => provider.getBulkMusicById(songs.map(
80-
s=>s.url.split(":", 1)[1]
80+
s=> s.url.split(/:(.*)/s)[1]
8181
))
8282
)
8383
result.push(...meta)

server/plugins/music-builtin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class HTTPProvider implements SDKMusicProvider {
2424
name: song.name,
2525
author: song.artist,
2626
size: song.size,
27-
url: song.url.split(":", 1)[1],
27+
url: song.url.split(/:(.*)/s)[1],
2828
originalUrl: song.url
2929
}))
3030
}

0 commit comments

Comments
 (0)