Add support for hosts in /host/

This commit is contained in:
FireMasterK 2021-06-20 12:49:07 +05:30
parent 49e3e100cd
commit 5cc0755b92
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,11 @@ func getHost(path string) (host string) {
host = "yt3.ggpht.com"
}
if strings.Contains(path, "/host/") {
path = path[(strings.Index(path, "/host/") + 6):]
host = path[0:strings.Index(path, "/")]
}
return host
}