jellyseerr: cleanup requests method, read proper errors

single req() function is wrapped by methods for each http method, and
error messages are parsed and returned if given by the server.

also added note about Jellyseerr's enforcement of unique email addresses
in settings.
This commit is contained in:
Harvey Tindall
2024-07-31 15:31:11 +01:00
parent 1fa340f096
commit db1c62cc46
3 changed files with 83 additions and 77 deletions
+4
View File
@@ -130,3 +130,7 @@ type MainUserSettings struct {
WatchlistSyncMovies any `json:"watchlistSyncMovies,omitempty"`
WatchlistSyncTv any `json:"watchlistSyncTv,omitempty"`
}
type ErrorDTO struct {
Message string `json:"message,omitempty"`
}