Skip to content

Commit

Permalink
chore:Optimize youtube-music downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
ivhu committed Dec 4, 2024
1 parent 3f039a6 commit 8a31b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/youtubeMusic_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (y *youtubeHandler) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error {
}
}
}()
ytdlp := exec.Command(y.ytdlpPath, "-f", "bestvideo[height<=?144]+bestaudio/best", "-x", "--audio-format", "mp3", "-P", uuid, url)
ytdlp := exec.Command(y.ytdlpPath, "-f", "ba", "-x", "--audio-format", "mp3", "-P", uuid, url)
err := ytdlp.Run()
a <- struct{}{}
if err != nil {
Expand Down

0 comments on commit 8a31b11

Please sign in to comment.