From e4602014c78ff0d323bb30f38ae0f90afdb96ad6 Mon Sep 17 00:00:00 2001 From: Alexey Grachov Date: Sun, 14 May 2017 12:11:44 +0300 Subject: [PATCH] [Fix #89] Add caption to Video params. --- configs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configs.go b/configs.go index cad9725..132ea9d 100644 --- a/configs.go +++ b/configs.go @@ -451,6 +451,10 @@ func (config VideoConfig) values() (url.Values, error) { func (config VideoConfig) params() (map[string]string, error) { params, _ := config.BaseFile.params() + if config.Caption != "" { + params["caption"] = config.Caption + } + return params, nil }