yt-dlp
A yt-dlp module
Installation
dagger install github.com/jpadams/yt-dlp@9b41904178ba712e60dce07a9a3127a604daff58
Entrypoint
Return Type
YtDlp !
Example
dagger -m github.com/jpadams/yt-dlp@9b41904178ba712e60dce07a9a3127a604daff58 call \
func (m *myModule) example() *YtDlp {
return dag.
YtDlp()
}
@function
def example() -> dag.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@9b41904178ba712e60dce07a9a3127a604daff58 call \
base
func (m *myModule) example() *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 |
Example
dagger -m github.com/jpadams/yt-dlp@9b41904178ba712e60dce07a9a3127a604daff58 call \
dl --url string --format string --name string
func (m *myModule) example(url string, format string, name string) *File {
return dag.
YtDlp().
Dl(url, format, name)
}
@function
def example(url: str, format: str, name: str) -> dagger.File:
return (
dag.yt_dlp()
.dl(url, format, name)
)
@func()
example(url: string, format: string, name: string): File {
return dag
.ytDlp()
.dl(url, format, name)
}