update thumbnails URL
This commit is contained in:
parent
fd64cadc4e
commit
2b20f379bc
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)
|
desiredQuality = int(q)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
redirectBaseURL = fmt.Sprintf("https://image-processor.vanwanet.com/optimize/s:%s:%s/quality:%d/plain/https://cdn.lbryplayer.xyz/speech/", width, height, desiredQuality)
|
redirectBaseURL = fmt.Sprintf("https://thumbnails.odysee.com/optimize/s:%s:%s/quality:%d/plain/https://cdn.lbryplayer.xyz/speech/", width, height, desiredQuality)
|
||||||
}
|
}
|
||||||
c.Header("Cache-Control", "max-age=604800")
|
c.Header("Cache-Control", "max-age=604800")
|
||||||
if parts := regexp.MustCompile(`^(view/)?([a-f0-9]+)/(.*?)\.(.*)$`).FindStringSubmatch(url); parts != nil {
|
if parts := regexp.MustCompile(`^(view/)?([a-f0-9]+)/(.*?)\.(.*)$`).FindStringSubmatch(url); parts != nil {
|
||||||
|
|
Loading…
Reference in a new issue