Struct youtube_dl::YoutubeDl[][src]

pub struct YoutubeDl { /* fields omitted */ }
Expand description

A builder to create a youtube-dl command to execute.

Implementations

Create a new builder.

Performs a search with the given search options.

Set the path to the youtube-dl executable.

Set the -F command line option.

Set the --flat-playlist command line flag.

Set the --socket-timeout command line flag.

Set the --user-agent command line flag.

Set the --referer command line flag.

Set the --all-formats command line flag.

Set the -u and -p command line flags.

Specify a file with cookies in Netscape cookie format.

Set a process-level timeout for youtube-dl. (this controls the maximum overall duration the process may take, when it times out, Error::ProcessTimeout is returned)

Set the --extract-audio command line flag.

Add an additional custom CLI argument.

This allows specifying arguments that are not covered by other configuration methods.

Run youtube-dl with the arguments specified through the builder.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.