tiktok: www.tiktok.com y arreglar tiktok.com
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
3f1ecbdde4
commit
815e219eb8
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue