Made it so that bot does not attempt to download live streams or adult content
This commit is contained in:
parent
480eb86d80
commit
186d3b3069
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue