🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Workaround to detect empty dates in some Subsonic clients
Deluan20271df4fb0b
diff --git a/utils/request_helpers.go b/utils/request_helpers.goindex 1fe454609..16727c761 100644--- a/utils/request_helpers.go+++ b/utils/request_helpers.go@@ -49,7 +49,11 @@ func ParamTime(r *http.Request, param string, def time.Time) time.Time {if err != nil {return def}- return ToTime(value)+ t := ToTime(value)+ if t.Before(time.Date(1970, time.January, 2, 0, 0, 0, 0, time.UTC)) {+ return def+ }+ return t}func ParamInt(r *http.Request, param string, def int) int {