Hallucinate a fix to ytdlp

This commit is contained in:
2025-10-06 13:57:27 +02:00
parent ccefc21f53
commit 0002b08256

View File

@@ -8,12 +8,18 @@ import (
"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().
// FormatSort("bestvideo[ext=mp4]+bestaudio[ext=m4a]").
FormatSort("res,ext:mp4:m4a").
Output("C:/Users/Administrator/ytdlpVideos/%(uploader)s/%(title)s.%(ext)s").
LimitRate(fmt.Sprintf("%dM", 150/DOWNLOAD_WORKERS)).
// HTTPChunkSize("20M").
ExtractorArgs("youtube:player_client=android").
MarkWatched().
SponsorblockMark("all").
RecodeVideo("mp4").