spelling correct

This commit is contained in:
2025-01-17 20:39:18 -05:00
parent d4ad4bc430
commit 72dfbf4a03
4 changed files with 24 additions and 21 deletions

View File

@ -17,14 +17,14 @@ func AniListQuery(body interface{}, login bool) (json.RawMessage, string) {
if login && (AniListJWT{}) != aniListJwt {
response.Header.Add("Authorization", "Bearer "+aniListJwt.AccessToken)
} else if login {
return nil, "Please login to anilist to make this request"
return nil, "Please login to AniList to make this request"
}
response.Header.Add("Content-Type", "application/json")
response.Header.Add("Accept", "application/json")
client := &http.Client{}
res, reserr := client.Do(response)
if reserr != nil {
res, resErr := client.Do(response)
if resErr != nil {
log.Printf("Failed at res, %s\n", err)
}
@ -148,7 +148,7 @@ func (a *App) GetAniListItem(aniId int, login bool) AniListGetSingleAnime {
return post
}
if status == "404 Not Found" && login {
if status == "404 Not Found" {
post = a.GetAniListItem(aniId, false)
}