Made it so that bot does not attempt to download live streams or adult content

This commit is contained in:
Logan G 2022-07-20 15:13:54 -06:00
parent 480eb86d80
commit 186d3b3069
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -106,7 +106,7 @@ func messageCreate(session *discordgo.Session, message *discordgo.MessageCreate)
if err != nil {
log.Println(err)
continue
} else {
} else if result.Info.AgeLimit < 18 && ! result.Info.IsLive {
/*
videoChoice, audioChoice, err := getLargestDashFormat(result, 8*1024*1024)
log.Printf("Choice: %s+%s | Size: %fM\n", videoChoice.FormatID, audioChoice.FormatID, (videoChoice.Filesize+audioChoice.Filesize)/1024/1024)