mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Proxy s.pximg.net #45
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user