Proxy s.pximg.net #45

This commit is contained in:
VnPower
2024-01-22 19:45:21 +07:00
parent 8f65044b00
commit 4d06de3eb3
3 changed files with 34 additions and 1 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ type ArtworkBrief struct {
}
func ProxyImages(s, proxy string) string {
s = strings.ReplaceAll(s, `i.pximg.net`, proxy)
s = strings.ReplaceAll(s, `https:\/\/i.pximg.net`, "https://"+proxy)
s = strings.ReplaceAll(s, `https:\/\/s.pximg.net`, "/s.pximg.net")
return s
}