tiktok: www.tiktok.com y arreglar tiktok.com
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Cat /dev/Nulo 2023-05-15 08:11:55 -03:00
parent 3f1ecbdde4
commit 815e219eb8

View file

@ -18,14 +18,16 @@ type TikTok struct {
var Responder *TikTok = &TikTok{} var Responder *TikTok = &TikTok{}
func (r *TikTok) Respond(url *url.URL) (*common.Uploadable, common.Error) { 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 return nil, common.NotValid
} }
urlString := url.String()
// tikmate no entiende tiktok.com // tikmate no entiende tiktok.com
url.Host = "vm.tiktok.com" url.Host = "vm.tiktok.com"
urlString := url.String()
lookup, err := r.lookup(urlString) lookup, err := r.lookup(urlString)
if err != nil { if err != nil {
log.Println(err) log.Println(err)