Fix various typos

This commit is contained in:
Bogdan 2025-06-10 18:36:14 +03:00
parent aea8b7cd7e
commit 4924b45b56
18 changed files with 27 additions and 27 deletions

View file

@ -21,7 +21,7 @@ function createMapStateToProps() {
) => { ) => {
// If a release is deleted this selector may fire before the parent // 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 // we want to return early here and again in the render function to avoid
// trying to show a release that has no information available. // trying to show a release that has no information available.

View file

@ -419,7 +419,7 @@ export const reducers = createHandleActions({
const items = newState.items; const items = newState.items;
const index = items.findIndex((item) => item.guid === guid); 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) { if (index >= 0) {
const item = Object.assign({}, items[index], payload); const item = Object.assign({}, items[index], payload);

View file

@ -2,8 +2,8 @@ import { createSelector } from 'reselect';
import { isCommandExecuting } from 'Utilities/Command'; import { isCommandExecuting } from 'Utilities/Command';
import createCommandSelector from './createCommandSelector'; import createCommandSelector from './createCommandSelector';
function createCommandExecutingSelector(name: string, contraints = {}) { function createCommandExecutingSelector(name: string, constraints = {}) {
return createSelector(createCommandSelector(name, contraints), (command) => { return createSelector(createCommandSelector(name, constraints), (command) => {
return isCommandExecuting(command); return isCommandExecuting(command);
}); });
} }

View file

@ -2,9 +2,9 @@ import { createSelector } from 'reselect';
import { findCommand } from 'Utilities/Command'; import { findCommand } from 'Utilities/Command';
import createCommandsSelector from './createCommandsSelector'; import createCommandsSelector from './createCommandsSelector';
function createCommandSelector(name: string, contraints = {}) { function createCommandSelector(name: string, constraints = {}) {
return createSelector(createCommandsSelector(), (commands) => { return createSelector(createCommandsSelector(), (commands) => {
return findCommand(commands, { name, ...contraints }); return findCommand(commands, { name, ...constraints });
}); });
} }

View file

@ -16,7 +16,7 @@ namespace NzbDrone.Common.Test.EnvironmentInfo
[Test] [Test]
public void should_get_branch() public void should_get_branch()
{ {
BuildInfo.Branch.Should().NotBe("unknow"); BuildInfo.Branch.Should().NotBe("unknown");
BuildInfo.Branch.Should().NotBeNullOrWhiteSpace(); BuildInfo.Branch.Should().NotBeNullOrWhiteSpace();
} }
} }

View file

@ -15,7 +15,7 @@ namespace NzbDrone.Common.EnvironmentInfo
var attributes = assembly.GetCustomAttributes(true); var attributes = assembly.GetCustomAttributes(true);
Branch = "unknow"; Branch = "unknown";
var config = attributes.OfType<AssemblyConfigurationAttribute>().FirstOrDefault(); var config = attributes.OfType<AssemblyConfigurationAttribute>().FirstOrDefault();
if (config != null) if (config != null)

View file

@ -97,7 +97,7 @@ namespace NzbDrone.Common.Http
// Save to add to final response // Save to add to final response
var responseCookies = response.Cookies; 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); var responseContainer = HandleRedirectCookies(request, response);
response = await ExecuteRequestAsync(request, responseContainer); response = await ExecuteRequestAsync(request, responseContainer);

View file

@ -27,7 +27,7 @@ namespace NzbDrone.Core.Datastore
switch (expression.NodeType) switch (expression.NodeType)
{ {
case ExpressionType.Lambda: case ExpressionType.Lambda:
return VisitLamda((LambdaExpression)expression); return VisitLambda((LambdaExpression)expression);
case ExpressionType.ArrayLength: case ExpressionType.ArrayLength:
case ExpressionType.Convert: case ExpressionType.Convert:
case ExpressionType.ConvertChecked: case ExpressionType.ConvertChecked:
@ -87,7 +87,7 @@ namespace NzbDrone.Core.Datastore
} }
/// <summary> /// <summary>
/// Visits the memeber access expression. To be implemented by user. /// Visits the member access expression. To be implemented by user.
/// </summary> /// </summary>
/// <param name="expression"></param> /// <param name="expression"></param>
/// <returns></returns> /// <returns></returns>
@ -130,11 +130,11 @@ namespace NzbDrone.Core.Datastore
} }
/// <summary> /// <summary>
/// Visits the lamda expression. /// Visits the lambda expression.
/// </summary> /// </summary>
/// <param name="lambdaExpression"></param> /// <param name="lambdaExpression"></param>
/// <returns></returns> /// <returns></returns>
protected virtual Expression VisitLamda(LambdaExpression lambdaExpression) protected virtual Expression VisitLambda(LambdaExpression lambdaExpression)
{ {
Visit(lambdaExpression.Body); Visit(lambdaExpression.Body);
return lambdaExpression; return lambdaExpression;

View file

@ -237,13 +237,13 @@ namespace NzbDrone.Core.Indexers.Definitions
return _categories.MapTrackerCatDescToNewznab("OVA/ONA/Special"); 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)) if (CategorieMovieRegex.IsMatch(rName) || CategorieMovieRegex.IsMatch(rDesc))
{ {
return _categories.MapTrackerCatDescToNewznab("Movies"); 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)) if (CategorieDoramaRegex.IsMatch(rName) || CategorieDoramaRegex.IsMatch(type))
{ {
return _categories.MapTrackerCatDescToNewznab("Dorama"); return _categories.MapTrackerCatDescToNewznab("Dorama");

View file

@ -710,15 +710,15 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
var diacriticsOp = (string)filter.Args; var diacriticsOp = (string)filter.Args;
if (diacriticsOp == "replace") 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" // It's not perfect, e.g. "ŠĐĆŽ - šđčćž" becomes "SĐCZ-sđccz"
var stFormD = data.Normalize(NormalizationForm.FormD); var stFormD = data.Normalize(NormalizationForm.FormD);
var len = stFormD.Length; var len = stFormD.Length;
var sb = new StringBuilder(); var sb = new StringBuilder();
for (var i = 0; i < len; i++) for (var i = 0; i < len; i++)
{ {
var uc = System.Globalization.CharUnicodeInfo.GetUnicodeCategory(stFormD[i]); var uc = CharUnicodeInfo.GetUnicodeCategory(stFormD[i]);
if (uc != System.Globalization.UnicodeCategory.NonSpacingMark) if (uc != UnicodeCategory.NonSpacingMark)
{ {
sb.Append(stFormD[i]); sb.Append(stFormD[i]);
} }
@ -779,7 +779,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
return headers; 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) foreach (var header in customHeaders)
{ {
headers.Add(header.Key, ApplyGoTemplateText(header.Value[0], variables)); headers.Add(header.Key, ApplyGoTemplateText(header.Value[0], variables));

View file

@ -1203,7 +1203,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
Encoding = _encoding Encoding = _encoding
}; };
// Add FormData for searchs that POST // Add FormData for searches that POST
if (method == HttpMethod.Post) if (method == HttpMethod.Post)
{ {
foreach (var param in queryCollection) foreach (var param in queryCollection)

View file

@ -138,7 +138,7 @@ namespace NzbDrone.Core.Indexers.Definitions
} }
else if (!string.IsNullOrWhiteSpace(searchString)) 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 // 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); var regex = new Regex(@"(^|\s)(s\d{2})(\s|$)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
queryCollection.Add("searchstring", regex.Replace(searchString.Trim(), @"$1$2*$3")); queryCollection.Add("searchstring", regex.Replace(searchString.Trim(), @"$1$2*$3"));

View file

@ -44,7 +44,7 @@ namespace NzbDrone.Core.Notifications.Mailgun
const string body = "This is a test message from Prowlarr, though Mailgun."; const string body = "This is a test message from Prowlarr, though Mailgun.";
_proxy.SendNotification(title, body, Settings); _proxy.SendNotification(title, body, Settings);
_logger.Info("Successsfully sent email though Mailgun."); _logger.Info("Successfully sent email though Mailgun.");
} }
catch (Exception ex) catch (Exception ex)
{ {

View file

@ -34,7 +34,7 @@ namespace NzbDrone.Core.Notifications.Mailgun
{ {
if (ex.Response.StatusCode == HttpStatusCode.Unauthorized) 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"); throw new MailgunException("Unauthorized - ApiKey is invalid");
} }

View file

@ -77,7 +77,7 @@ namespace NzbDrone.Core.Notifications.Twitter
using (var reader = new StreamReader(responseStream)) using (var reader = new StreamReader(responseStream))
{ {
var responseBody = reader.ReadToEnd(); 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); throw new TwitterException("Error received from Twitter: " + responseBody, ex);
} }
} }

View file

@ -76,7 +76,7 @@ namespace NzbDrone.Host
case ApplicationModes.RegisterUrl: case ApplicationModes.RegisterUrl:
{ {
_logger.Debug("Regiser URL selected"); _logger.Debug("Register URL selected");
_remoteAccessAdapter.MakeAccessible(false); _remoteAccessAdapter.MakeAccessible(false);
break; break;

View file

@ -38,7 +38,7 @@ namespace Prowlarr.Api.V1
Tags = definition.Tags, Tags = definition.Tags,
Fields = SchemaBuilder.ToSchema(definition.Settings), 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 // note: indexers get a different link
InfoLink = string.Format("https://wiki.servarr.com/prowlarr/supported#{0}", InfoLink = string.Format("https://wiki.servarr.com/prowlarr/supported#{0}",
definition.Implementation.ToLower().Replace(' ', '-')) definition.Implementation.ToLower().Replace(' ', '-'))

View file

@ -95,7 +95,7 @@ namespace Prowlarr.Http.Extensions
var scheme = request.Scheme; var scheme = request.Scheme;
var port = request.HttpContext.Request.Host.Port; 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 // 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(); var xForwardedProto = request.Headers.Where(x => x.Key == "X-Forwarded-Proto").Select(x => x.Value).FirstOrDefault();