use ffprobe

This commit is contained in:
sentriz
2019-04-04 16:02:11 +01:00
parent f5aa05abc3
commit dd84d4df27
415 changed files with 295 additions and 229161 deletions

View File

@@ -44,7 +44,9 @@ func (c *Controller) CheckParameters(next http.HandlerFunc) http.HandlerFunc {
if param != "" {
continue
}
respondError(w, r, 10, fmt.Sprintf("please provide a `%s` parameter", req))
respondError(w, r,
10, fmt.Sprintf("please provide a `%s` parameter", req),
)
return
}
username := r.URL.Query().Get("u")
@@ -54,7 +56,9 @@ func (c *Controller) CheckParameters(next http.HandlerFunc) http.HandlerFunc {
passwordAuth := token == "" && salt == ""
tokenAuth := password == ""
if tokenAuth == passwordAuth {
respondError(w, r, 10, "please provide parameters `t` and `s`, or just `p`")
respondError(w, r,
10, "please provide parameters `t` and `s`, or just `p`",
)
return
}
user := db.User{