mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 23:40: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 {
|
||||
|
||||
Reference in New Issue
Block a user