Fix various typos

This commit is contained in:
Bogdan 2025-04-15 23:06:06 +03:00
parent f3026df65d
commit 8485fc8c75
20 changed files with 30 additions and 30 deletions

View file

@ -9,7 +9,7 @@ function createMapStateToProps() {
createCollectionSelector(),
(collection) => {
// If a movie is deleted this selector may fire before the parent
// selecors, which will result in an undefined movie, if that happens
// selectors, which will result in an undefined movie, if that happens
// we want to return early here and again in the render function to avoid
// trying to show a movie that has no information available.

View file

@ -12,7 +12,7 @@ function createMapStateToProps() {
) => {
// If a movie is deleted this selector may fire before the parent
// selecors, which will result in an undefined movie, if that happens
// selectors, which will result in an undefined movie, if that happens
// we want to return early here and again in the render function to avoid
// trying to show a movie that has no information available.

View file

@ -45,7 +45,7 @@
}
.createGroupButton {
composes: buton from '~Components/Link/IconButton.css';
composes: button from '~Components/Link/IconButton.css';
display: flex;
align-items: center;

View file

@ -71,7 +71,7 @@
}
.deleteGroupButton {
composes: buton from '~Components/Link/IconButton.css';
composes: button from '~Components/Link/IconButton.css';
display: flex;
align-items: center;

View file

@ -326,7 +326,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);

View file

@ -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);
});
}

View file

@ -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 });
});
}

View file

@ -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();
}
}

View file

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

View file

@ -346,7 +346,7 @@ namespace NzbDrone.Common.Processes
}
catch
{
// Don't crash on gettings some log data.
// Don't crash on getting some log data.
}
return processes;

View file

@ -130,7 +130,7 @@ namespace NzbDrone.Core.Datastore
}
/// <summary>
/// Visits the lamda expression.
/// Visits the lambda expression.
/// </summary>
/// <param name="lambdaExpression"></param>
/// <returns></returns>

View file

@ -58,7 +58,7 @@ namespace NzbDrone.Core.Datastore.Migration
// Trim dashes from end
value = value.Trim('-', '_');
// Replace double occurences of - or _
// Replace double occurrences of - or _
value = Regex.Replace(value, @"([-_]){2,}", "$1", RegexOptions.Compiled);
return value;

View file

@ -45,7 +45,7 @@ namespace NzbDrone.Core.Datastore.Migration
Execute.Sql("UPDATE \"NamingConfig\" SET \"RenameMovies\"=\"RenameEpisodes\"");
Delete.Column("RenameEpisodes").FromTable("NamingConfig");
// Manual SQL, Fluent Migrator doesn't support multi-column unique contraint on table creation, SQLite doesn't support adding it after creation
// Manual SQL, Fluent Migrator doesn't support multi-column unique constraint on table creation, SQLite doesn't support adding it after creation
IfDatabase("sqlite").Execute.Sql("CREATE TABLE \"MovieTranslations\"(" +
"\"Id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " +
"\"MovieId\" INTEGER NOT NULL, " +

View file

@ -47,7 +47,7 @@ namespace NzbDrone.Core.Datastore.Migration
.FirstOrDefault();
}
// If all the movie profiles are bad or there are no movies, just use the first profile for bad movies and lsits
// If all the movie profiles are bad or there are no movies, just use the first profile for bad movies and lists
if (mostCommonProfileId == 0)
{
mostCommonProfileId = profiles.First();

View file

@ -110,7 +110,7 @@ namespace NzbDrone.Core.Download.Clients.FreeboxDownload.Responses
{ "bt_file_error", "Error accessing torrent files." },
{ "missing_ctx_file", "Error accessing task context file." },
{ "nzb_no_group", "Cannot find the requested group on server." },
{ "nzb_not_found", "Article not fount on the server." },
{ "nzb_not_found", "Article not found on the server." },
{ "nzb_invalid_crc", "Invalid article CRC." },
{ "nzb_invalid_size", "Invalid article size." },
{ "nzb_invalid_filename", "Invalid filename." },

View file

@ -96,7 +96,7 @@ namespace NzbDrone.Core.Download.Clients.FreeboxDownload
case FreeboxDownloadTaskStatus.Starting: // task is preparing to start download
case FreeboxDownloadTaskStatus.Downloading:
case FreeboxDownloadTaskStatus.Retry: // you can set a task status to retry to restart the download task.
case FreeboxDownloadTaskStatus.Checking: // checking data before lauching download.
case FreeboxDownloadTaskStatus.Checking: // checking data before launching download.
item.Status = DownloadItemStatus.Downloading;
break;

View file

@ -169,7 +169,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
}
catch (Exception ex)
{
_logger.Error(ex, "Unknown error occured in RemotePathMapping HealthCheck");
_logger.Error(ex, "Unknown error occurred in RemotePathMapping HealthCheck");
}
}
@ -217,7 +217,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
"#remote-path-file-removed");
}
// If the previous case did not match then the failure occured in DownloadedMovieImportService,
// If the previous case did not match then the failure occurred in DownloadedMovieImportService,
// while trying to locate the files reported by the download client
// Only check clients not in failure status, those get another message
var client = _downloadClientProvider.GetDownloadClients(true).FirstOrDefault(x => x.Definition.Name == failureMessage.DownloadClientInfo.Name);
@ -359,7 +359,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
}
catch (Exception ex)
{
_logger.Error(ex, "Unknown error occured in RemotePathMapping HealthCheck");
_logger.Error(ex, "Unknown error occurred in RemotePathMapping HealthCheck");
}
return new HealthCheck(GetType());

View file

@ -29,7 +29,7 @@ namespace NzbDrone.Core.ImportLists.Trakt.Popular
RuleFor(c => c.Certification)
.Matches(@"^\bNR\b|\bG\b|\bPG\b|\bPG\-13\b|\bR\b|\bNC\-17\b$", RegexOptions.IgnoreCase)
.When(c => c.Certification.IsNotNullOrWhiteSpace())
.WithMessage("Not a valid cerification");
.WithMessage("Not a valid certification");
// Loose validation @TODO
RuleFor(c => c.Years)

View file

@ -12,7 +12,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook.Resource
public string OriginalTitle { get; set; }
public string TitleSlug { get; set; }
// Depricated but left in place until cache fills new object (MovieRatings)
// Deprecated but left in place until cache fills new object (MovieRatings)
public List<RatingItem> Ratings { get; set; }
public RatingResource MovieRatings { get; set; }
public int? Runtime { get; set; }

View file

@ -8,10 +8,10 @@ namespace NzbDrone.Core.Qualities
{
private static readonly Logger Logger = NzbDroneLogger.GetLogger(typeof(QualityFinder));
public static Quality FindBySourceAndResolution(QualitySource source, int resolution, Modifier modifer)
public static Quality FindBySourceAndResolution(QualitySource source, int resolution, Modifier modifier)
{
// Check for a perfect 3-way match
var matchingQuality = Quality.All.SingleOrDefault(q => q.Source == source && q.Resolution == resolution && q.Modifier == modifer);
var matchingQuality = Quality.All.SingleOrDefault(q => q.Source == source && q.Resolution == resolution && q.Modifier == modifier);
if (matchingQuality != null)
{
@ -19,11 +19,11 @@ namespace NzbDrone.Core.Qualities
}
// Check for Source and Modifier Match for Qualities with Unknown Resolution
var matchingQualitiesUnknownResolution = Quality.All.Where(q => q.Source == source && (q.Resolution == 0) && q.Modifier == modifer && q != Quality.Unknown);
var matchingQualitiesUnknownResolution = Quality.All.Where(q => q.Source == source && (q.Resolution == 0) && q.Modifier == modifier && q != Quality.Unknown).ToList();
if (matchingQualitiesUnknownResolution.Any())
{
if (matchingQualitiesUnknownResolution.Count() == 1)
if (matchingQualitiesUnknownResolution.Count == 1)
{
return matchingQualitiesUnknownResolution.First();
}
@ -32,14 +32,14 @@ namespace NzbDrone.Core.Qualities
{
if (quality.Source >= source)
{
Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifer, quality);
Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifier, quality);
return quality;
}
}
}
// Check for Modifier match
var matchingModifier = Quality.All.Where(q => q.Modifier == modifer);
var matchingModifier = Quality.All.Where(q => q.Modifier == modifier);
var matchingResolution = matchingModifier.Where(q => q.Resolution == resolution)
.OrderBy(q => q.Source)
@ -56,7 +56,7 @@ namespace NzbDrone.Core.Qualities
}
}
Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifer, nearestQuality);
Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifier, nearestQuality);
return nearestQuality;
}