Implement updateShare and deleteShare Subsonic endpoints

This commit is contained in:
Deluan
2023-01-22 20:21:06 -05:00
parent 20271df4fb
commit d5df102f9f
6 changed files with 52 additions and 7 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func ParamTimes(r *http.Request, param string) []time.Time {
func ParamTime(r *http.Request, param string, def time.Time) time.Time {
v := ParamString(r, param)
if v == "" {
if v == "" || v == "-1" {
return def
}
value, err := strconv.ParseInt(v, 10, 64)