diff --git a/goutubedl.go b/goutubedl.go index 7837555..1b85c49 100644 --- a/goutubedl.go +++ b/goutubedl.go @@ -346,6 +346,12 @@ func infoFromURL( cmd.Args = append(cmd.Args, "--cookies-from-browser", options.CookiesFromBrowser) } + if options.ExtractorArgs != "" { + cmd.Args = append(cmd.Args, + "--extractor-args", options.ExtractorArgs, + ) + } + switch options.Type { case TypePlaylist, TypeChannel: cmd.Args = append(cmd.Args, "--yes-playlist")