yt-dlp
A yt-dlp module
Installation
dagger install github.com/jpadams/yt-dlp@v1.0.0
Entrypoint
Return Type
YtDlp !
Example
dagger -m github.com/jpadams/yt-dlp@1f5bab19124294c81c09d8180df36c30bed2f8ce call \
func (m *MyModule) Example() *dagger.YtDlp {
return dag.
YtDlp()
}
@function
def example() -> dagger.YtDlp:
return (
dag.yt_dlp()
)
@func()
example(): YtDlp {
return dag
.ytDlp()
}
Types
YtDlp 🔗
base() 🔗
Returns base yt-dlp Container
Return Type
Container !
Example
dagger -m github.com/jpadams/yt-dlp@1f5bab19124294c81c09d8180df36c30bed2f8ce call \
base
func (m *MyModule) Example() *dagger.Container {
return dag.
YtDlp().
Base()
}
@function
def example() -> dagger.Container:
return (
dag.yt_dlp()
.base()
)
@func()
example(): Container {
return dag
.ytDlp()
.base()
}
dl() 🔗
Returns a downloaded video File
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
url | String ! | - | No description provided |
format | String ! | "bestvideo[ext=mp4]+bestaudio[ext=m4a]" | No description provided |
name | String ! | "out.mp4" | No description provided |
sections | String ! | "" | No description provided |
Example
dagger -m github.com/jpadams/yt-dlp@1f5bab19124294c81c09d8180df36c30bed2f8ce call \
dl --url string --format string --name string --sections string
func (m *MyModule) Example(url string, format string, name string, sections string) *dagger.File {
return dag.
YtDlp().
Dl(url, format, name, sections)
}
@function
def example(url: str, format: str, name: str, sections: str) -> dagger.File:
return (
dag.yt_dlp()
.dl(url, format, name, sections)
)
@func()
example(url: string, format: string, name: string, sections: string): File {
return dag
.ytDlp()
.dl(url, format, name, sections)
}