From 4924b45b562fc124db2755cca03fe1d6e6d239cc Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 10 Jun 2025 18:36:14 +0300 Subject: [PATCH] Fix various typos --- frontend/src/Search/Table/SearchIndexItemConnector.js | 2 +- frontend/src/Store/Actions/releaseActions.js | 2 +- .../src/Store/Selectors/createCommandExecutingSelector.ts | 4 ++-- frontend/src/Store/Selectors/createCommandSelector.ts | 4 ++-- .../EnvironmentInfo/BuildInfoFixture.cs | 2 +- src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs | 2 +- src/NzbDrone.Common/Http/HttpClient.cs | 2 +- src/NzbDrone.Core/Datastore/ExpressionVisitor.cs | 8 ++++---- src/NzbDrone.Core/Indexers/Definitions/Animedia.cs | 4 ++-- .../Indexers/Definitions/Cardigann/CardigannBase.cs | 8 ++++---- .../Definitions/Cardigann/CardigannRequestGenerator.cs | 2 +- src/NzbDrone.Core/Indexers/Definitions/TorrentSyndikat.cs | 2 +- src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs | 2 +- src/NzbDrone.Core/Notifications/Mailgun/MailgunProxy.cs | 2 +- src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs | 2 +- src/NzbDrone.Host/UtilityModeRouter.cs | 2 +- src/Prowlarr.Api.V1/ProviderResource.cs | 2 +- src/Prowlarr.Http/Extensions/RequestExtensions.cs | 2 +- 18 files changed, 27 insertions(+), 27 deletions(-) diff --git a/frontend/src/Search/Table/SearchIndexItemConnector.js b/frontend/src/Search/Table/SearchIndexItemConnector.js index 4cc7fb20c..9a4e857ed 100644 --- a/frontend/src/Search/Table/SearchIndexItemConnector.js +++ b/frontend/src/Search/Table/SearchIndexItemConnector.js @@ -21,7 +21,7 @@ function createMapStateToProps() { ) => { // If a release is deleted this selector may fire before the parent - // selecors, which will result in an undefined release, if that happens + // selectors, which will result in an undefined release, if that happens // we want to return early here and again in the render function to avoid // trying to show a release that has no information available. diff --git a/frontend/src/Store/Actions/releaseActions.js b/frontend/src/Store/Actions/releaseActions.js index fd2fe441b..a2db49383 100644 --- a/frontend/src/Store/Actions/releaseActions.js +++ b/frontend/src/Store/Actions/releaseActions.js @@ -419,7 +419,7 @@ export const reducers = createHandleActions({ const items = newState.items; const index = items.findIndex((item) => item.guid === guid); - // Don't try to update if there isnt a matching item (the user closed the modal) + // Don't try to update if there isn't a matching item (the user closed the modal) if (index >= 0) { const item = Object.assign({}, items[index], payload); diff --git a/frontend/src/Store/Selectors/createCommandExecutingSelector.ts b/frontend/src/Store/Selectors/createCommandExecutingSelector.ts index 6a80e172b..9c5ae99d1 100644 --- a/frontend/src/Store/Selectors/createCommandExecutingSelector.ts +++ b/frontend/src/Store/Selectors/createCommandExecutingSelector.ts @@ -2,8 +2,8 @@ import { createSelector } from 'reselect'; import { isCommandExecuting } from 'Utilities/Command'; import createCommandSelector from './createCommandSelector'; -function createCommandExecutingSelector(name: string, contraints = {}) { - return createSelector(createCommandSelector(name, contraints), (command) => { +function createCommandExecutingSelector(name: string, constraints = {}) { + return createSelector(createCommandSelector(name, constraints), (command) => { return isCommandExecuting(command); }); } diff --git a/frontend/src/Store/Selectors/createCommandSelector.ts b/frontend/src/Store/Selectors/createCommandSelector.ts index cced7b186..1cc34201b 100644 --- a/frontend/src/Store/Selectors/createCommandSelector.ts +++ b/frontend/src/Store/Selectors/createCommandSelector.ts @@ -2,9 +2,9 @@ import { createSelector } from 'reselect'; import { findCommand } from 'Utilities/Command'; import createCommandsSelector from './createCommandsSelector'; -function createCommandSelector(name: string, contraints = {}) { +function createCommandSelector(name: string, constraints = {}) { return createSelector(createCommandsSelector(), (commands) => { - return findCommand(commands, { name, ...contraints }); + return findCommand(commands, { name, ...constraints }); }); } diff --git a/src/NzbDrone.Common.Test/EnvironmentInfo/BuildInfoFixture.cs b/src/NzbDrone.Common.Test/EnvironmentInfo/BuildInfoFixture.cs index 3f6c8fc3b..4d467de50 100644 --- a/src/NzbDrone.Common.Test/EnvironmentInfo/BuildInfoFixture.cs +++ b/src/NzbDrone.Common.Test/EnvironmentInfo/BuildInfoFixture.cs @@ -16,7 +16,7 @@ namespace NzbDrone.Common.Test.EnvironmentInfo [Test] public void should_get_branch() { - BuildInfo.Branch.Should().NotBe("unknow"); + BuildInfo.Branch.Should().NotBe("unknown"); BuildInfo.Branch.Should().NotBeNullOrWhiteSpace(); } } diff --git a/src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs b/src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs index 623a06c8a..d7f84c5fd 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/BuildInfo.cs @@ -15,7 +15,7 @@ namespace NzbDrone.Common.EnvironmentInfo var attributes = assembly.GetCustomAttributes(true); - Branch = "unknow"; + Branch = "unknown"; var config = attributes.OfType().FirstOrDefault(); if (config != null) diff --git a/src/NzbDrone.Common/Http/HttpClient.cs b/src/NzbDrone.Common/Http/HttpClient.cs index 326c30b04..9fa05a485 100644 --- a/src/NzbDrone.Common/Http/HttpClient.cs +++ b/src/NzbDrone.Common/Http/HttpClient.cs @@ -97,7 +97,7 @@ namespace NzbDrone.Common.Http // Save to add to final response var responseCookies = response.Cookies; - // Update cookiecontainer for next request with any cookies recieved on last request + // Update cookie container for next request with any cookies received on last request var responseContainer = HandleRedirectCookies(request, response); response = await ExecuteRequestAsync(request, responseContainer); diff --git a/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs b/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs index bcb977af1..408ce2aac 100644 --- a/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs +++ b/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs @@ -27,7 +27,7 @@ namespace NzbDrone.Core.Datastore switch (expression.NodeType) { case ExpressionType.Lambda: - return VisitLamda((LambdaExpression)expression); + return VisitLambda((LambdaExpression)expression); case ExpressionType.ArrayLength: case ExpressionType.Convert: case ExpressionType.ConvertChecked: @@ -87,7 +87,7 @@ namespace NzbDrone.Core.Datastore } /// - /// Visits the memeber access expression. To be implemented by user. + /// Visits the member access expression. To be implemented by user. /// /// /// @@ -130,11 +130,11 @@ namespace NzbDrone.Core.Datastore } /// - /// Visits the lamda expression. + /// Visits the lambda expression. /// /// /// - protected virtual Expression VisitLamda(LambdaExpression lambdaExpression) + protected virtual Expression VisitLambda(LambdaExpression lambdaExpression) { Visit(lambdaExpression.Body); return lambdaExpression; diff --git a/src/NzbDrone.Core/Indexers/Definitions/Animedia.cs b/src/NzbDrone.Core/Indexers/Definitions/Animedia.cs index 9f898b1f9..29c10eef2 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Animedia.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Animedia.cs @@ -237,13 +237,13 @@ namespace NzbDrone.Core.Indexers.Definitions return _categories.MapTrackerCatDescToNewznab("OVA/ONA/Special"); } - // Check movies then, cause some of releases could be movies dorama and should go to movies category + // Check movies then, cause some of the releases could be movies dorama and should go to movies category if (CategorieMovieRegex.IsMatch(rName) || CategorieMovieRegex.IsMatch(rDesc)) { return _categories.MapTrackerCatDescToNewznab("Movies"); } - // Check dorama. Most of doramas are flaged as doramas in type info, but type info could have a lot of types at same time (movie, etc) + // Check dorama. Most of doramas are flagged as doramas in type info, but type info could have a lot of types at same time (movie, etc) if (CategorieDoramaRegex.IsMatch(rName) || CategorieDoramaRegex.IsMatch(type)) { return _categories.MapTrackerCatDescToNewznab("Dorama"); diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs index b9e410244..884d52d36 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs @@ -710,15 +710,15 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann var diacriticsOp = (string)filter.Args; if (diacriticsOp == "replace") { - // Should replace diacritics charcaters with their base character + // Should replace diacritics characters with their base character // It's not perfect, e.g. "ŠĐĆŽ - šđčćž" becomes "SĐCZ-sđccz" var stFormD = data.Normalize(NormalizationForm.FormD); var len = stFormD.Length; var sb = new StringBuilder(); for (var i = 0; i < len; i++) { - var uc = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(stFormD[i]); - if (uc != System.Globalization.UnicodeCategory.NonSpacingMark) + var uc = CharUnicodeInfo.GetUnicodeCategory(stFormD[i]); + if (uc != UnicodeCategory.NonSpacingMark) { sb.Append(stFormD[i]); } @@ -779,7 +779,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann return headers; } - // FIXME: fix jackett header handling (allow it to specifiy the same header multipe times) + // FIXME: fix jackett header handling (allow it to specify the same header multiple times) foreach (var header in customHeaders) { headers.Add(header.Key, ApplyGoTemplateText(header.Value[0], variables)); diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs index 11c8060ab..7ad231f42 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs @@ -1203,7 +1203,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann Encoding = _encoding }; - // Add FormData for searchs that POST + // Add FormData for searches that POST if (method == HttpMethod.Post) { foreach (var param in queryCollection) diff --git a/src/NzbDrone.Core/Indexers/Definitions/TorrentSyndikat.cs b/src/NzbDrone.Core/Indexers/Definitions/TorrentSyndikat.cs index 4d74319ae..a986c7291 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/TorrentSyndikat.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/TorrentSyndikat.cs @@ -138,7 +138,7 @@ namespace NzbDrone.Core.Indexers.Definitions } else if (!string.IsNullOrWhiteSpace(searchString)) { - // Suffix the first occurence of `s01` surrounded by whitespace with * + // Suffix the first occurrence of `s01` surrounded by whitespace with * // That way we also search for single episodes in a whole season search var regex = new Regex(@"(^|\s)(s\d{2})(\s|$)", RegexOptions.Compiled | RegexOptions.IgnoreCase); queryCollection.Add("searchstring", regex.Replace(searchString.Trim(), @"$1$2*$3")); diff --git a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs index 7eb33c80e..1736e3b00 100644 --- a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs +++ b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs @@ -44,7 +44,7 @@ namespace NzbDrone.Core.Notifications.Mailgun const string body = "This is a test message from Prowlarr, though Mailgun."; _proxy.SendNotification(title, body, Settings); - _logger.Info("Successsfully sent email though Mailgun."); + _logger.Info("Successfully sent email though Mailgun."); } catch (Exception ex) { diff --git a/src/NzbDrone.Core/Notifications/Mailgun/MailgunProxy.cs b/src/NzbDrone.Core/Notifications/Mailgun/MailgunProxy.cs index f8b970f15..8bd1796a0 100644 --- a/src/NzbDrone.Core/Notifications/Mailgun/MailgunProxy.cs +++ b/src/NzbDrone.Core/Notifications/Mailgun/MailgunProxy.cs @@ -34,7 +34,7 @@ namespace NzbDrone.Core.Notifications.Mailgun { if (ex.Response.StatusCode == HttpStatusCode.Unauthorized) { - _logger.Error("Unathorized - ApiKey is invalid"); + _logger.Error("Unauthorized - ApiKey is invalid"); throw new MailgunException("Unauthorized - ApiKey is invalid"); } diff --git a/src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs b/src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs index bce42d483..056c6b52e 100644 --- a/src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs +++ b/src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs @@ -77,7 +77,7 @@ namespace NzbDrone.Core.Notifications.Twitter using (var reader = new StreamReader(responseStream)) { var responseBody = reader.ReadToEnd(); - _logger.Trace("Reponse: {0} Status Code: {1}", responseBody, httpResponse.StatusCode); + _logger.Trace("Response: {0} Status Code: {1}", responseBody, httpResponse.StatusCode); throw new TwitterException("Error received from Twitter: " + responseBody, ex); } } diff --git a/src/NzbDrone.Host/UtilityModeRouter.cs b/src/NzbDrone.Host/UtilityModeRouter.cs index 62c4ba7b2..39c290261 100644 --- a/src/NzbDrone.Host/UtilityModeRouter.cs +++ b/src/NzbDrone.Host/UtilityModeRouter.cs @@ -76,7 +76,7 @@ namespace NzbDrone.Host case ApplicationModes.RegisterUrl: { - _logger.Debug("Regiser URL selected"); + _logger.Debug("Register URL selected"); _remoteAccessAdapter.MakeAccessible(false); break; diff --git a/src/Prowlarr.Api.V1/ProviderResource.cs b/src/Prowlarr.Api.V1/ProviderResource.cs index 3de6725c7..5cfa45dbd 100644 --- a/src/Prowlarr.Api.V1/ProviderResource.cs +++ b/src/Prowlarr.Api.V1/ProviderResource.cs @@ -38,7 +38,7 @@ namespace Prowlarr.Api.V1 Tags = definition.Tags, Fields = SchemaBuilder.ToSchema(definition.Settings), - //prowlarr/supported#{0} is an disambagation page. the # should be a header on the page with appropiate details/link + //prowlarr/supported#{0} is a disambiguation page. the # should be a header on the page with appropriate details/link // note: indexers get a different link InfoLink = string.Format("https://wiki.servarr.com/prowlarr/supported#{0}", definition.Implementation.ToLower().Replace(' ', '-')) diff --git a/src/Prowlarr.Http/Extensions/RequestExtensions.cs b/src/Prowlarr.Http/Extensions/RequestExtensions.cs index f9495387e..0654aa910 100644 --- a/src/Prowlarr.Http/Extensions/RequestExtensions.cs +++ b/src/Prowlarr.Http/Extensions/RequestExtensions.cs @@ -95,7 +95,7 @@ namespace Prowlarr.Http.Extensions var scheme = request.Scheme; var port = request.HttpContext.Request.Host.Port; - // Check for protocol headers added by reverse proxys + // Check for protocol headers added by reverse proxies // X-Forwarded-Proto: A de facto standard for identifying the originating protocol of an HTTP request var xForwardedProto = request.Headers.Where(x => x.Key == "X-Forwarded-Proto").Select(x => x.Value).FirstOrDefault();