summaryrefslogtreecommitdiff
path: root/app/app.go
diff options
context:
space:
mode:
authorgabek <gabek@noreply@mills.io>2022-08-25 23:15:27 +0000
committerJames Mills <james@mills.io>2022-08-25 23:15:27 +0000
commited8964ee7a606cf0e8ca5d6ffcf695f0eb9854c8 (patch)
tree6df4f02608ba14f2f37cadede1c67fbd3ae6b0f8 /app/app.go
parent31040303f7c20939ff1009836e90f7586fc8b118 (diff)
Supply the seconds position where a thumbnail is generated (#22)
Reviewed-on: https://git.mills.io/prologic/tube/pulls/22 Co-authored-by: gabek <gabek@noreply@mills.io> Co-committed-by: gabek <gabek@noreply@mills.io>
Diffstat (limited to 'app/app.go')
-rw-r--r--app/app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/app.go b/app/app.go
index a431a1e..aed83c6 100644
--- a/app/app.go
+++ b/app/app.go
@@ -302,7 +302,7 @@ func (a *App) uploadHandler(w http.ResponseWriter, r *http.Request) {
"-i", uf.Name(),
"-y",
"-vf", "thumbnail",
- "-t", "3",
+ "-t", fmt.Sprint(a.Config.Thumbnailer.PositionFromStart),
"-vframes", "1",
"-strict", "-2",
"-loglevel", "quiet",