Add a new config to scrap description from babelio

This commit is contained in:
2026-03-24 17:02:43 +01:00
parent c4390742b3
commit 843c5b5dbc
12 changed files with 347 additions and 46 deletions

View File

@@ -12,6 +12,10 @@ import (
"gorm.io/gorm"
)
type TranslatedError struct {
Err error
}
type HttpError struct {
StatusCode int
Err error
@@ -59,6 +63,10 @@ func (h HttpError) Error() string {
return fmt.Sprintf("%d: err %v", h.StatusCode, h.Err)
}
func (e TranslatedError) Error() string {
return fmt.Sprintf("%v", e.Err)
}
type apiValidationError struct {
Field string `json:"field"`
Err string `json:"error"`