Fix issues with slow

This commit is contained in:
2024-06-17 16:14:46 +02:00
parent 37ab3d8dc7
commit a7babdbba4

View File

@@ -14,8 +14,12 @@ var dl = ytdlp.New().
FormatSort("res,ext:mp4:m4a").
Output("C:/Users/Administrator/ytdlpVideos/%(uploader)s/%(title)s.%(ext)s").
LimitRate("50M").
HTTPChunkSize("20M").
MarkWatched()
// HTTPChunkSize("20M").
MarkWatched().
SponsorblockMark("all").
PrintJSON().
RecodeVideo("mp4").
ConcurrentFragments(4)
func Download(event PBEvent, status chan error) {
_, err := dl.Run(context.TODO(), event.Record.Link)