Have yt-dlp determine what download is best for insta

This commit is contained in:
Logan G 2022-07-20 18:03:15 -06:00
parent ef82200046
commit f5afb11f90
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -151,7 +151,7 @@ func messageCreate(session *discordgo.Session, message *discordgo.MessageCreate)
continue
} else {
session.ChannelTyping(message.ChannelID)
downloadResult, err := result.Download(context.Background(), result.Formats()[0].FormatID) // Insta only has one possible format to download :(
downloadResult, err := result.Download(context.Background(), "best") // Insta only has one possible format to download :(
if err != nil {
log.Println(err)
continue