aaand last one
This commit is contained in:
parent
5932cf9a2c
commit
0ca8bff0e2
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -133,7 +133,7 @@ func view(c *gin.Context) {
|
|||
desiredQuality = int(q)
|
||||
}
|
||||
}
|
||||
redirectBaseURL = fmt.Sprintf("https://thumbnails.odycdn.com/optimize/s:%s:%s/quality:%d/plain/https://player.odycdn.com/speech/", width, height, desiredQuality)
|
||||
redirectBaseURL = fmt.Sprintf("https://source.thumbnails.odycdn.com/optimize/s:%s:%s/quality:%d/plain/https://player.odycdn.com/speech/", width, height, desiredQuality)
|
||||
}
|
||||
c.Header("Cache-Control", "max-age=604800")
|
||||
if parts := regexp.MustCompile(`^(view/)?([a-f0-9]+)/(.*?)\.(.*)$`).FindStringSubmatch(url); parts != nil {
|
||||
|
|
Loading…
Reference in a new issue