youtube-dl
A module for youtube-dl, a tool to download videos from youtube
Installation
dagger install github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95
Entrypoint
Return Type
YoutubeDl !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "2025.01.01" | The nightly version of youtube-dl to use |
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
func (m *myModule) example() *YoutubeDl {
return dag.
YoutubeDl()
}
@function
def example() -> dag.YoutubeDl:
return (
dag.youtube_dl()
)
@func()
example(): YoutubeDl {
return dag
.youtubeDl()
}
Types
YoutubeDl 🔗
cli() 🔗
The youtube-dl cli container
Return Type
Container !
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
cli
func (m *myModule) example() *Container {
return dag.
YoutubeDl().
Cli()
}
@function
def example() -> dagger.Container:
return (
dag.youtube_dl()
.cli()
)
@func()
example(): Container {
return dag
.youtubeDl()
.cli()
}
options() 🔗
youtubne-dl [OPTIONS]
Return Type
[String ! ] !
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
options
func (m *myModule) example(ctx context.Context) []string {
return dag.
YoutubeDl().
Options(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.youtube_dl()
.options()
)
@func()
async example(): Promise<string[]> {
return dag
.youtubeDl()
.options()
}
urls() 🔗
youtube-dl [OPTIONS] URL [URL …]
Return Type
[String ! ] !
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
urls
func (m *myModule) example(ctx context.Context) []string {
return dag.
YoutubeDl().
Urls(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.youtube_dl()
.urls()
)
@func()
async example(): Promise<string[]> {
return dag
.youtubeDl()
.urls()
}
version() 🔗
The version of youtube-dl to use
Return Type
String !
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
version
func (m *myModule) example(ctx context.Context) string {
return dag.
YoutubeDl().
Version(ctx)
}
@function
async def example() -> str:
return await (
dag.youtube_dl()
.version()
)
@func()
async example(): Promise<string> {
return dag
.youtubeDl()
.version()
}
withOptions() 🔗
The options to pass for youtube-dl [OPTIONS] …
Return Type
YoutubeDl !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
options | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
with-options --options string1 --options string2
func (m *myModule) example(options []string) *YoutubeDl {
return dag.
YoutubeDl().
WithOptions(options)
}
@function
def example(options: List[str]) -> dag.YoutubeDl:
return (
dag.youtube_dl()
.with_options(options)
)
@func()
example(options: string[]): YoutubeDl {
return dag
.youtubeDl()
.withOptions(options)
}
withUrls() 🔗
The URL [URLS …] to pass to youtube-dl
Return Type
YoutubeDl !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
urls | [String ! ] | - | No description provided |
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
with-urls
func (m *myModule) example() *YoutubeDl {
return dag.
YoutubeDl().
WithUrls()
}
@function
def example() -> dag.YoutubeDl:
return (
dag.youtube_dl()
.with_urls()
)
@func()
example(): YoutubeDl {
return dag
.youtubeDl()
.withUrls()
}
file() 🔗
Download the video from the given URL
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
path | String ! | - | The file to save the video to |
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
file --path string
func (m *myModule) example(path string) *File {
return dag.
YoutubeDl().
File(path)
}
@function
def example(path: str) -> dagger.File:
return (
dag.youtube_dl()
.file(path)
)
@func()
example(path: string): File {
return dag
.youtubeDl()
.file(path)
}
directory() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
path | String ! | - | No description provided |
Example
dagger -m github.com/pjmagee/daggerverse/youtube-dl@daa6feeb6e7b599b6ac5ae202e989fd296212c95 call \
directory --path string
func (m *myModule) example(path string) *Directory {
return dag.
YoutubeDl().
Directory(path)
}
@function
def example(path: str) -> dagger.Directory:
return (
dag.youtube_dl()
.directory(path)
)
@func()
example(path: string): Directory {
return dag
.youtubeDl()
.directory(path)
}