aboutsummaryrefslogtreecommitdiff
path: root/upload.go
diff options
context:
space:
mode:
Diffstat (limited to 'upload.go')
-rw-r--r--upload.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/upload.go b/upload.go
index 2d62f1c..68c6adb 100644
--- a/upload.go
+++ b/upload.go
@@ -77,7 +77,7 @@ func (b *UploadBackend) upload(w http.ResponseWriter, r *http.Request) {
artist = "Unknown"
}
- wrms.AddSong(NewSong(title, artist, "upload", fileName))
+ wrms.AddSong(NewDetailedSong(title, artist, "upload", fileName, m.Album(), m.Year()))
fmt.Fprintf(w, "Added uploaded song %s", string(fileName))
}
@@ -95,6 +95,6 @@ func (b *UploadBackend) Play(song *Song, player Player) {
player.PlayUri("file://" + path.Join(b.uploadDir, song.Uri))
}
-func (b *UploadBackend) Search(keyword string) []Song {
+func (b *UploadBackend) Search(map[string]string) []Song {
return nil
}