Skip to content

Commit

Permalink
style(mediaProxy): format with gofmt to pass linter checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AiraNadih authored and fguillot committed Oct 31, 2024
1 parent 469f239 commit b0a3b4d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/reader/rewrite/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,26 @@ var predefinedRules = map[string]string{

type RefererRule struct {
URLPattern *regexp.Regexp
Referer string
Referer string
}

// List of predefined referer rules
var PredefinedRefererRules = []RefererRule{
{
URLPattern: regexp.MustCompile(`^https://\w+\.sinaimg\.cn`),
Referer: "https://weibo.com",
Referer: "https://weibo.com",
},
{
URLPattern: regexp.MustCompile(`^https://i\.pximg\.net`),
Referer: "https://www.pixiv.net",
Referer: "https://www.pixiv.net",
},
{
URLPattern: regexp.MustCompile(`^https://cdnfile\.sspai\.com`),
Referer: "https://sspai.com",
Referer: "https://sspai.com",
},
{
URLPattern: regexp.MustCompile(`^https://(?:\w|-)+\.cdninstagram\.com`),
Referer: "https://www.instagram.com",
Referer: "https://www.instagram.com",
},
{
URLPattern: regexp.MustCompile(`^https://sp1\.piokok\.com`),
Expand Down

0 comments on commit b0a3b4d

Please sign in to comment.