mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-15 19:49:53 +01:00
Anime lists didn't age well 😵💫
This commit is contained in:
22
ober.go
22
ober.go
@@ -692,26 +692,18 @@ func processUpdateReq(ctx *fasthttp.RequestCtx, update bool) {
|
||||
if update {
|
||||
// anime exitsts => save
|
||||
// get watch progress
|
||||
progress, updated, _, listState, _ := FetchProgress(anime.Anime, username, false)
|
||||
progress, updated, _, listState, _ := FetchProgress(anime.Anime, username)
|
||||
// anime is already completed big baka user
|
||||
if listState == malApiStatusC {
|
||||
// One shot retry messy solution with refetch
|
||||
progress, updated, _, listState, _ = FetchProgress(anime.Anime, username, true)
|
||||
if listState == malApiStatusC {
|
||||
ctx.WriteString("Du hast schon fertig geschaut bro")
|
||||
ctx.SetStatusCode(fasthttp.StatusConflict)
|
||||
return
|
||||
}
|
||||
ctx.WriteString("Du hast schon fertig geschaut bro")
|
||||
ctx.SetStatusCode(fasthttp.StatusConflict)
|
||||
return
|
||||
}
|
||||
// anime is already dropped big baka user
|
||||
if listState == malApiStatusD {
|
||||
// One shot retry messy solution with refetch
|
||||
progress, updated, _, listState, _ = FetchProgress(anime.Anime, username, true)
|
||||
if listState == malApiStatusD {
|
||||
ctx.WriteString("Du hast schon gedropped bro")
|
||||
ctx.SetStatusCode(fasthttp.StatusConflict)
|
||||
return
|
||||
}
|
||||
ctx.WriteString("Du hast schon gedropped bro")
|
||||
ctx.SetStatusCode(fasthttp.StatusConflict)
|
||||
return
|
||||
}
|
||||
animeData, err = AddUserToAnime(username, userId, anime.Anime, progress, updated)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user