Merge pull request #54 from etsweeney/main

Fix spelling of received
This commit is contained in:
Aune 2022-12-09 16:23:24 +01:00 committed by GitHub
commit 8cd62828df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View file

@ -47,7 +47,7 @@
"get_user_show_stats_top_show_plural":"Your top shows",
"get_user_show_stats_spent_title":"You spent {show_sum_duration} watching shows.",
"get_user_show_stats_most_played_title":"You really liked the episode {show_episode} from {show_title}.",
"get_user_show_stats_most_played_subtitle":"It recieved {episode_play_sum} and was endured for {episode_duration_sum}.",
"get_user_show_stats_most_played_subtitle":"It received {episode_play_sum} and was endured for {episode_duration_sum}.",
"get_user_show_stats_buddy_title":"Your top show was {top_show_title}. And you're not alone! Your {top_show_title}-buddy is {buddy_username}!",
"get_user_show_stats_buddy_subtitle":"Your combined efforts resulted in {buddy_duration_sum} of {top_show_title}!",
"get_user_show_stats_buddy_title_none":"Your top show was {top_show_title}.",
@ -116,4 +116,4 @@
"create_share_links": true,
"plex_auth": true,
"winter_theme": true
}
}

View file

@ -87,7 +87,7 @@ func ApiSetConfig(w http.ResponseWriter, r *http.Request) {
// Confirm username length
if config_payload.DataType == "" {
log.Println("Cannot set new config. Invalid data type recieved.")
log.Println("Cannot set new config. Invalid data type received.")
utilities.RespondDefaultError(w, r, errors.New("Data type specified is invalid."), 400)
return
}
@ -142,7 +142,7 @@ func ApiSetConfig(w http.ResponseWriter, r *http.Request) {
time.Local = new_time
} else {
log.Println("Cannot set new config. Invalid data type recieved. Type: " + config_payload.DataType)
log.Println("Cannot set new config. Invalid data type received. Type: " + config_payload.DataType)
utilities.RespondDefaultError(w, r, errors.New("Failed to save new Wrapperr confguration."), 400)
return
}

View file

@ -297,7 +297,7 @@ func ApiGetTautulliConncection(w http.ResponseWriter, r *http.Request) {
json.Unmarshal(reqBody, &tautulli_connection)
if tautulli_connection.TautulliApiKey == "" || tautulli_connection.TautulliIP == "" || tautulli_connection.TautulliPort == 0 {
log.Println("Cannot test Tautulli connection. Invalid Tautulli connection details recieved.")
log.Println("Cannot test Tautulli connection. Invalid Tautulli connection details received.")
utilities.RespondDefaultError(w, r, errors.New("Tautulli connection details specified are invalid."), 400)
return
}

View file

@ -142,7 +142,7 @@ func ApiWrapperGetStatistics(w http.ResponseWriter, r *http.Request) {
// If caching mode is true and user is not admin, return bad request error
if wrapperr_request.CachingMode && !admin {
log.Println("Caching mode recieved, but user was not verified as admin.")
log.Println("Caching mode received, but user was not verified as admin.")
utilities.RespondDefaultError(w, r, errors.New("Only the admin can perform caching."), 401)
return
}

View file

@ -55,7 +55,7 @@ func ApiGetLoginURL(w http.ResponseWriter, r *http.Request) {
// Confirm username length
if homeurl_payload.HomeURL == "" {
log.Println("Cannot retrieve Plex Auth login URL. Invalid HomeURL recieved.")
log.Println("Cannot retrieve Plex Auth login URL. Invalid HomeURL received.")
utilities.RespondDefaultError(w, r, errors.New("HomeURL specified is invalid."), 400)
return
}
@ -131,7 +131,7 @@ func ApiLoginPlexAuth(w http.ResponseWriter, r *http.Request) {
// Confirm username length
if payload.ID == 0 || payload.Code == "" {
log.Println("Cannot retrieve Plex Auth login state. Invalid ID or Code recieved.")
log.Println("Cannot retrieve Plex Auth login state. Invalid ID or Code received.")
utilities.RespondDefaultError(w, r, errors.New("Login ID and/or Code is invalid."), 400)
return
}
@ -144,7 +144,7 @@ func ApiLoginPlexAuth(w http.ResponseWriter, r *http.Request) {
}
if plex_auth.AuthToken == "" {
log.Println("Plex Auth response invalid. No Authtoken recieved.")
log.Println("Plex Auth response invalid. No Authtoken received.")
utilities.RespondDefaultError(w, r, errors.New("Plex Auth response invalid."), 400)
return
}
@ -184,8 +184,8 @@ func ApiValidatePlexAuth(w http.ResponseWriter, r *http.Request) {
utilities.RespondDefaultError(w, r, errors.New("Failed to parse login token."), 500)
return
} else if payload.Admin {
log.Println("Recieved JWT token is for admin use.")
utilities.RespondDefaultError(w, r, errors.New("Recieved JWT token is for admin use."), 401)
log.Println("Received JWT token is for admin use.")
utilities.RespondDefaultError(w, r, errors.New("Received JWT token is for admin use."), 401)
return
}