mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-29 11:36:36 +08:00
fix: retry failed discover artwork
This commit is contained in:
@@ -70,6 +70,9 @@ func stopTranscodeHandler(svc *service.Container) gin.HandlerFunc {
|
||||
func imageProxyHandler(svc *service.Container) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
raw := c.Query("url")
|
||||
if c.Query("retry") != "" || c.Query("refresh") != "" {
|
||||
_ = svc.ImageProxy.RemoveFailed(raw)
|
||||
}
|
||||
// Serve handles upstream errors internally by returning a 1×1 PNG
|
||||
// placeholder, so the only error we can get back here is a malformed
|
||||
// URL. In that case we still return 400 to make the misuse visible.
|
||||
|
||||
Reference in New Issue
Block a user