mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-12-06 19:16:28 +01:00
Add support for /ytc/ - channel avatars.
This commit is contained in:
@@ -106,7 +106,7 @@ func getHost(path string) (host string) {
|
||||
host = "yt3.ggpht.com"
|
||||
}
|
||||
|
||||
if strings.HasPrefix(path, "/a/") {
|
||||
if strings.HasPrefix(path, "/a/") || strings.HasPrefix(path, "/ytc/") {
|
||||
host = "yt3.ggpht.com"
|
||||
}
|
||||
|
||||
@@ -134,6 +134,7 @@ func main() {
|
||||
http.HandleFunc("/vi/", genericHTTPProxy)
|
||||
http.HandleFunc("/vi_webp/", genericHTTPProxy)
|
||||
http.HandleFunc("/a/", genericHTTPProxy)
|
||||
http.HandleFunc("/ytc/", genericHTTPProxy)
|
||||
http.HandleFunc("/ggpht/", genericHTTPProxy)
|
||||
http.HandleFunc("/sb/", genericHTTPProxy)
|
||||
socket := "socket" + string(os.PathSeparator) + "http-proxy.sock"
|
||||
|
||||
Reference in New Issue
Block a user