Hallucinate a fix to ytdlp
This commit is contained in:
@@ -8,12 +8,18 @@ import (
|
|||||||
"github.com/lrstanley/go-ytdlp"
|
"github.com/lrstanley/go-ytdlp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
// Ensure yt-dlp is installed/up-to-date for this environment.
|
||||||
|
ytdlp.MustInstall(context.TODO(), nil)
|
||||||
|
}
|
||||||
|
|
||||||
var dl = ytdlp.New().
|
var dl = ytdlp.New().
|
||||||
// FormatSort("bestvideo[ext=mp4]+bestaudio[ext=m4a]").
|
// FormatSort("bestvideo[ext=mp4]+bestaudio[ext=m4a]").
|
||||||
FormatSort("res,ext:mp4:m4a").
|
FormatSort("res,ext:mp4:m4a").
|
||||||
Output("C:/Users/Administrator/ytdlpVideos/%(uploader)s/%(title)s.%(ext)s").
|
Output("C:/Users/Administrator/ytdlpVideos/%(uploader)s/%(title)s.%(ext)s").
|
||||||
LimitRate(fmt.Sprintf("%dM", 150/DOWNLOAD_WORKERS)).
|
LimitRate(fmt.Sprintf("%dM", 150/DOWNLOAD_WORKERS)).
|
||||||
// HTTPChunkSize("20M").
|
// HTTPChunkSize("20M").
|
||||||
|
ExtractorArgs("youtube:player_client=android").
|
||||||
MarkWatched().
|
MarkWatched().
|
||||||
SponsorblockMark("all").
|
SponsorblockMark("all").
|
||||||
RecodeVideo("mp4").
|
RecodeVideo("mp4").
|
||||||
|
Reference in New Issue
Block a user