Add support for hosts in /host/
This commit is contained in:
parent
49e3e100cd
commit
5cc0755b92
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue