This commit is contained in:
@ -235,6 +235,7 @@ type Options struct {
|
||||
HTTPClient *http.Client // Client for download thumbnail and subtitles (nil use http.DefaultClient)
|
||||
MergeOutputFormat string // --merge-output-format
|
||||
SortingFormat string // --format-sort
|
||||
ExtractorArgs string // --extractor-args
|
||||
|
||||
// Set to true if you don't want to use the result.Info structure after the goutubedl.New() call,
|
||||
// so the given URL will be downloaded in a single pass in the DownloadResult.Download() call.
|
||||
@ -672,6 +673,12 @@ func (result Result) DownloadWithOptions(
|
||||
)
|
||||
}
|
||||
|
||||
if result.Options.ExtractorArgs != "" {
|
||||
cmd.Args = append(cmd.Args,
|
||||
"--extractor-args", result.Options.ExtractorArgs,
|
||||
)
|
||||
}
|
||||
|
||||
cmd.Dir = tempPath
|
||||
var stdoutW io.WriteCloser
|
||||
var stderrW io.WriteCloser
|
||||
|
Reference in New Issue
Block a user