feat: add radarr support
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
1fdaeba6e9
commit
705039c3d5
|
@ -4,7 +4,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gitea.dwysokinski.me/Kichiyaki/notificationarr/internal/domain"
|
"gitea.dwysokinski.me/Kichiyaki/notificationarr/internal/domain"
|
||||||
|
@ -122,8 +121,6 @@ func (h *WebhookHandler) handleRadarrWebhook(w http.ResponseWriter, r *http.Requ
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println(req.EventType)
|
|
||||||
|
|
||||||
eventType, err := domain.NewRadarrEventType(req.EventType)
|
eventType, err := domain.NewRadarrEventType(req.EventType)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
renderErrorResponse(w, fmt.Errorf("domain.NewRadarrEventType: %w", err))
|
renderErrorResponse(w, fmt.Errorf("domain.NewRadarrEventType: %w", err))
|
||||||
|
|
Reference in New Issue