From 815e219eb84aa953e037ade216f791403a70c290 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 15 May 2023 08:11:55 -0300 Subject: [PATCH] tiktok: www.tiktok.com y arreglar tiktok.com --- tiktok/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tiktok/main.go b/tiktok/main.go index f2f1c79..d73a78c 100644 --- a/tiktok/main.go +++ b/tiktok/main.go @@ -18,14 +18,16 @@ type TikTok struct { var Responder *TikTok = &TikTok{} func (r *TikTok) Respond(url *url.URL) (*common.Uploadable, common.Error) { - if url.Hostname() != "vm.tiktok.com" && url.Hostname() != "tiktok.com" { + if url.Hostname() != "vm.tiktok.com" && + url.Hostname() != "tiktok.com" && + url.Hostname() != "www.tiktok.com" { return nil, common.NotValid } - urlString := url.String() - // tikmate no entiende tiktok.com url.Host = "vm.tiktok.com" + urlString := url.String() + lookup, err := r.lookup(urlString) if err != nil { log.Println(err)