renamed anilist variables to allow for other services

This commit is contained in:
2024-07-30 12:59:21 -04:00
parent 237958cce5
commit d1258c54d3
2 changed files with 28 additions and 29 deletions

View File

@ -15,8 +15,8 @@ func AniListQuery(body interface{}, login bool) (json.RawMessage, string) {
if err != nil {
log.Printf("Failed at response, %s\n", err)
}
if login && (AniListJWT{}) != jwt {
response.Header.Add("Authorization", "Bearer "+jwt.AccessToken)
if login && (AniListJWT{}) != aniListJwt {
response.Header.Add("Authorization", "Bearer "+aniListJwt.AccessToken)
} else if login {
return nil, "Please login to anilist to make this request"
}