diff --git a/instagram/main.go b/instagram/main.go index 6b94112..499ec08 100644 --- a/instagram/main.go +++ b/instagram/main.go @@ -3,6 +3,7 @@ package main import ( "log" "net/url" + "strings" "nulo.in/dlbot/common" @@ -13,6 +14,9 @@ func respond(bot *tgbotapi.BotAPI, update tgbotapi.Update, url *url.URL) common. if url.Hostname() != "instagram.com" && url.Hostname() != "www.instagram.com" { return common.NotValid } + if strings.Index(url.Path, "/reel/") != 0 { + return common.NotValid + } log.Printf("Downloading %s", url.String()) lookup, err := Lookup(url.String())