mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 15:30:05 +00:00
remove audio url
This commit is contained in:
@@ -287,8 +287,6 @@ func scanSongs(rows *sql.Rows) ([]Song, error) {
|
||||
return []Song{}, err
|
||||
}
|
||||
|
||||
s.Url = fmt.Sprintf("%s/%s", s.Folder, s.Audio)
|
||||
|
||||
bm, err := parser.ParseOsuFile(fmt.Sprintf("%sSongs/%s/%s", fileName, s.Folder, s.File))
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
@@ -310,7 +308,6 @@ func scanSong(row *sql.Row) (Song, error) {
|
||||
if err := row.Scan(&s.BeatmapID, &s.MD5Hash, &s.Title, &s.Artist, &s.Creator, &s.Folder, &s.File, &s.Audio, &s.TotalTime); err != nil {
|
||||
return Song{}, err
|
||||
}
|
||||
s.Url = fmt.Sprintf("%s/%s", s.Folder, s.Audio)
|
||||
|
||||
bm, err := parser.ParseOsuFile(fmt.Sprintf("%sSongs/%s/%s", fileName, s.Folder, s.File))
|
||||
if err != nil {
|
||||
|
||||
@@ -12,7 +12,6 @@ type Song struct {
|
||||
File string `json:"file" example:"beatmap.osu"`
|
||||
Audio string `json:"audio" example:"audio.mp3"`
|
||||
TotalTime int64 `json:"total_time" example:"240"`
|
||||
Url string `json:"url" example:"https://osu.ppy.sh/beatmaps/123456"`
|
||||
Image string `json:"image" example:"cover.jpg"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user