@@ -50,31 +50,29 @@ func GetRefererForURL(u string) string {
50
50
}
51
51
52
52
switch parsedUrl .Hostname () {
53
- case "moyu.im" :
54
- return "https://i.jandan.net"
55
- case "i.pximg.net" :
56
- return "https://www.pixiv.net"
57
- case "sp1.piokok.com" :
58
- return "https://sp1.piokok.com"
53
+ case "appinn.com" :
54
+ return "https://appinn.com"
55
+ case "bjp.org.cn" :
56
+ return "https://bjp.org.cn"
59
57
case "cdnfile.sspai.com" :
60
58
return "https://sspai.com"
61
59
case "f.video.weibocdn.com" :
62
60
return "https://weibo.com"
61
+ case "i.pximg.net" :
62
+ return "https://www.pixiv.net"
63
63
case "img.hellogithub.com" :
64
64
return "https://hellogithub.com"
65
- case "bjp.org.cn" :
66
- return "https://bjp.org.cn"
67
- case "appinn.com" :
68
- return "https://appinn.com"
65
+ case "moyu.im" :
66
+ return "https://i.jandan.net"
69
67
}
70
68
71
69
switch {
72
- case strings .HasSuffix (parsedUrl .Hostname (), ".sinaimg.cn" ):
73
- return "https://weibo.com"
74
70
case strings .HasSuffix (parsedUrl .Hostname (), ".cdninstagram.com" ):
75
71
return "https://www.instagram.com"
76
72
case strings .HasSuffix (parsedUrl .Hostname (), ".moyu.im" ):
77
73
return "https://i.jandan.net"
74
+ case strings .HasSuffix (parsedUrl .Hostname (), ".sinaimg.cn" ):
75
+ return "https://weibo.com"
78
76
}
79
77
80
78
return ""
0 commit comments