|
|
|
@ -278,6 +278,7 @@ type AudioConfig struct { |
|
|
|
Duration int |
|
|
|
Duration int |
|
|
|
Performer string |
|
|
|
Performer string |
|
|
|
Title string |
|
|
|
Title string |
|
|
|
|
|
|
|
Caption string |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// values returns a url.Values representation of AudioConfig.
|
|
|
|
// values returns a url.Values representation of AudioConfig.
|
|
|
|
@ -295,6 +296,9 @@ func (config AudioConfig) values() (url.Values, error) { |
|
|
|
if config.Title != "" { |
|
|
|
if config.Title != "" { |
|
|
|
v.Add("title", config.Title) |
|
|
|
v.Add("title", config.Title) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if config.Caption != "" { |
|
|
|
|
|
|
|
v.Add("caption", config.Caption) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return v, nil |
|
|
|
return v, nil |
|
|
|
} |
|
|
|
} |
|
|
|
|