From 209a250079fdf7ad2bc9168f81bfb45b9531d6b3 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sun, 30 Oct 2022 18:14:08 -0400 Subject: [PATCH] Fix various typos Found via `codespell -q 3` --- .../Import/SelectSeries/ImportSeriesSelectSeries.css | 2 +- frontend/src/Components/SignalRConnector.js | 2 +- .../Overview/Options/SeriesIndexOverviewOptionsModalContent.js | 2 +- .../Posters/Options/SeriesIndexPosterOptionsModalContent.js | 2 +- src/NzbDrone.Common.Test/Http/HttpClientFixture.cs | 2 +- src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs | 2 +- src/NzbDrone.Common/Extensions/StringExtensions.cs | 2 +- src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs | 2 +- src/NzbDrone.Common/OAuth/OAuthTools.cs | 2 +- src/NzbDrone.Common/ServiceProvider.cs | 2 +- src/NzbDrone.Core/Datastore/ExpressionVisitor.cs | 2 +- .../Datastore/Migration/052_add_columns_for_anime.cs | 2 +- src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs | 2 +- .../Download/Clients/Transmission/TransmissionProxy.cs | 2 +- src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs | 2 +- .../HealthCheck/Checks/DownloadClientRootFolderCheck.cs | 2 +- src/NzbDrone.Core/ImportLists/ImportListSyncService.cs | 2 +- src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs | 2 +- .../Notifications/MediaBrowser/MediaBrowserSettings.cs | 2 +- src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs | 2 +- src/NzbDrone.Core/Parser/Parser.cs | 2 +- src/NzbDrone.Host/UtilityModeRouter.cs | 2 +- src/NzbDrone.Mono.Test/Sonarr.Mono.Test.csproj | 2 +- src/NzbDrone.Mono/Sonarr.Mono.csproj | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/frontend/src/AddSeries/ImportSeries/Import/SelectSeries/ImportSeriesSelectSeries.css b/frontend/src/AddSeries/ImportSeries/Import/SelectSeries/ImportSeriesSelectSeries.css index d087f508b..89b03301b 100644 --- a/frontend/src/AddSeries/ImportSeries/Import/SelectSeries/ImportSeriesSelectSeries.css +++ b/frontend/src/AddSeries/ImportSeries/Import/SelectSeries/ImportSeriesSelectSeries.css @@ -33,7 +33,7 @@ .contentContainer { z-index: $popperZIndex; margin-top: 4px; - /* 400px container witdh with 8px padding on each side */ + /* 400px container width with 8px padding on each side */ width: 384px; } diff --git a/frontend/src/Components/SignalRConnector.js b/frontend/src/Components/SignalRConnector.js index eed94ce63..98b1396f1 100644 --- a/frontend/src/Components/SignalRConnector.js +++ b/frontend/src/Components/SignalRConnector.js @@ -167,7 +167,7 @@ class SignalRConnector extends Component { const resource = body.resource; const status = resource.status; - // Both sucessful and failed commands need to be + // Both successful and failed commands need to be // completed, otherwise they spin until they timeout. if (status === 'completed' || status === 'failed') { diff --git a/frontend/src/Series/Index/Overview/Options/SeriesIndexOverviewOptionsModalContent.js b/frontend/src/Series/Index/Overview/Options/SeriesIndexOverviewOptionsModalContent.js index 2f1539cb9..0b46a7366 100644 --- a/frontend/src/Series/Index/Overview/Options/SeriesIndexOverviewOptionsModalContent.js +++ b/frontend/src/Series/Index/Overview/Options/SeriesIndexOverviewOptionsModalContent.js @@ -167,7 +167,7 @@ class SeriesIndexOverviewOptionsModalContent extends Component { type={inputTypes.CHECK} name="detailedProgressBar" value={detailedProgressBar} - helpText="Show text on progess bar" + helpText="Show text on progress bar" onChange={this.onChangeOverviewOption} /> diff --git a/frontend/src/Series/Index/Posters/Options/SeriesIndexPosterOptionsModalContent.js b/frontend/src/Series/Index/Posters/Options/SeriesIndexPosterOptionsModalContent.js index e9d94b6d0..9cbd5c301 100644 --- a/frontend/src/Series/Index/Posters/Options/SeriesIndexPosterOptionsModalContent.js +++ b/frontend/src/Series/Index/Posters/Options/SeriesIndexPosterOptionsModalContent.js @@ -132,7 +132,7 @@ class SeriesIndexPosterOptionsModalContent extends Component { type={inputTypes.CHECK} name="detailedProgressBar" value={detailedProgressBar} - helpText="Show text on progess bar" + helpText="Show text on progress bar" onChange={this.onChangePosterOption} /> diff --git a/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs b/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs index dca6b58a4..14d54e5c9 100644 --- a/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs +++ b/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs @@ -46,7 +46,7 @@ namespace NzbDrone.Common.Test.Http // Use mirrors for tests that use two hosts var candidates = new[] { "httpbin1.servarr.com" }; - // httpbin.org is broken right now, occassionally redirecting to https if it's unavailable. + // httpbin.org is broken right now, occasionally redirecting to https if it's unavailable. _httpBinHost = mainHost; _httpBinHosts = candidates.Where(IsTestSiteAvailable).ToArray(); diff --git a/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs b/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs index 1995dcb47..1d577748a 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs @@ -69,7 +69,7 @@ namespace NzbDrone.Common.EnvironmentInfo } catch (Exception ex) { - _logger.Warn(ex, "Coudn't set app folder permission"); + _logger.Warn(ex, "Couldn't set app folder permission"); } } diff --git a/src/NzbDrone.Common/Extensions/StringExtensions.cs b/src/NzbDrone.Common/Extensions/StringExtensions.cs index 6e6344517..ef159b197 100644 --- a/src/NzbDrone.Common/Extensions/StringExtensions.cs +++ b/src/NzbDrone.Common/Extensions/StringExtensions.cs @@ -189,7 +189,7 @@ namespace NzbDrone.Common.Extensions //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; diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs index 02fd38370..b2bbca7dd 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -113,7 +113,7 @@ namespace NzbDrone.Common.Instrumentation.Sentry _debounce = new SentryDebounce(); // initialize to true and reconfigure later - // Otherwise it will default to false and any errors occuring + // Otherwise it will default to false and any errors occurring // before config file gets read will not be filtered FilterEvents = true; diff --git a/src/NzbDrone.Common/OAuth/OAuthTools.cs b/src/NzbDrone.Common/OAuth/OAuthTools.cs index 20ea671b6..7601270dd 100644 --- a/src/NzbDrone.Common/OAuth/OAuthTools.cs +++ b/src/NzbDrone.Common/OAuth/OAuthTools.cs @@ -260,7 +260,7 @@ namespace NzbDrone.Common.OAuth } /// - /// Creates a request elements concatentation value to send with a request. + /// Creates a request elements concatenation value to send with a request. /// This is also known as the signature base. /// /// diff --git a/src/NzbDrone.Common/ServiceProvider.cs b/src/NzbDrone.Common/ServiceProvider.cs index 5beac74d0..b6b7903d0 100644 --- a/src/NzbDrone.Common/ServiceProvider.cs +++ b/src/NzbDrone.Common/ServiceProvider.cs @@ -216,7 +216,7 @@ namespace NzbDrone.Common if (dacls.Contains(authenticatedUsersDacl)) { - // Permssions already set + // Permissions already set return; } diff --git a/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs b/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs index bcb977af1..2605bbd9b 100644 --- a/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs +++ b/src/NzbDrone.Core/Datastore/ExpressionVisitor.cs @@ -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. /// /// /// diff --git a/src/NzbDrone.Core/Datastore/Migration/052_add_columns_for_anime.cs b/src/NzbDrone.Core/Datastore/Migration/052_add_columns_for_anime.cs index e0dba2496..babef43fa 100644 --- a/src/NzbDrone.Core/Datastore/Migration/052_add_columns_for_anime.cs +++ b/src/NzbDrone.Core/Datastore/Migration/052_add_columns_for_anime.cs @@ -12,7 +12,7 @@ namespace NzbDrone.Core.Datastore.Migration Alter.Table("SceneMappings").AddColumn("Type").AsString().Nullable(); Execute.Sql("DELETE FROM SceneMappings"); - //Add AnimeEpisodeFormat (set to Stardard Episode format for now) + //Add AnimeEpisodeFormat (set to Standard Episode format for now) Alter.Table("NamingConfig").AddColumn("AnimeEpisodeFormat").AsString().Nullable(); Execute.Sql("UPDATE NamingConfig SET AnimeEpisodeFormat = StandardEpisodeFormat"); } diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs index e2d19ad24..c643efb78 100644 --- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs +++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs @@ -124,7 +124,7 @@ namespace NzbDrone.Core.DecisionEngine private int ComparePeersIfTorrent(DownloadDecision x, DownloadDecision y) { // Different protocols should get caught when checking the preferred protocol, - // since we're dealing with the same series in our comparisions + // since we're dealing with the same series in our comparisons if (x.RemoteEpisode.Release.DownloadProtocol != DownloadProtocol.Torrent || y.RemoteEpisode.Release.DownloadProtocol != DownloadProtocol.Torrent) { diff --git a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionProxy.cs b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionProxy.cs index 90e758c3c..2c53f103b 100644 --- a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionProxy.cs +++ b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionProxy.cs @@ -141,7 +141,7 @@ namespace NzbDrone.Core.Download.Clients.Transmission private TransmissionResponse GetSessionVariables(TransmissionSettings settings) { - // Retrieve transmission information such as the default download directory, bandwith throttling and seed ratio. + // Retrieve transmission information such as the default download directory, bandwidth throttling and seed ratio. return ProcessRequest("session-get", null, settings); } diff --git a/src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs b/src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs index 0a0fb0b8b..1edd2e43e 100644 --- a/src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs +++ b/src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs @@ -43,7 +43,7 @@ namespace NzbDrone.Core.Extras.Metadata foreach (var possibleMetadataFile in filterResult.FilesOnDisk) { - // Don't process files that have known Subtitle file extensions (saves a bit of unecessary processing) + // Don't process files that have known Subtitle file extensions (saves a bit of unnecessary processing) if (SubtitleFileExtensions.Extensions.Contains(Path.GetExtension(possibleMetadataFile))) { diff --git a/src/NzbDrone.Core/HealthCheck/Checks/DownloadClientRootFolderCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/DownloadClientRootFolderCheck.cs index 17164e0f4..8d763a1ab 100644 --- a/src/NzbDrone.Core/HealthCheck/Checks/DownloadClientRootFolderCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/Checks/DownloadClientRootFolderCheck.cs @@ -57,7 +57,7 @@ namespace NzbDrone.Core.HealthCheck.Checks } catch (Exception ex) { - _logger.Error(ex, "Unknown error occured in DownloadClientRootFolderCheck HealthCheck"); + _logger.Error(ex, "Unknown error occurred in DownloadClientRootFolderCheck HealthCheck"); } } diff --git a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs index 314709f96..4c00afe52 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs @@ -106,7 +106,7 @@ namespace NzbDrone.Core.ImportLists if (excludedSeries != null) { - _logger.Debug("{0} [{1}] Rejected due to list exlcusion", report.TvdbId, report.Title); + _logger.Debug("{0} [{1}] Rejected due to list exclusion", report.TvdbId, report.Title); continue; } diff --git a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs index 44651262c..8a6e0839f 100644 --- a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs +++ b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs @@ -63,7 +63,7 @@ namespace NzbDrone.Core.Notifications.Mailgun const string body = "This is a test message from Sonarr, 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/MediaBrowser/MediaBrowserSettings.cs b/src/NzbDrone.Core/Notifications/MediaBrowser/MediaBrowserSettings.cs index e7880178a..de30d248b 100644 --- a/src/NzbDrone.Core/Notifications/MediaBrowser/MediaBrowserSettings.cs +++ b/src/NzbDrone.Core/Notifications/MediaBrowser/MediaBrowserSettings.cs @@ -36,7 +36,7 @@ namespace NzbDrone.Core.Notifications.Emby [FieldDefinition(3, Label = "API Key", Privacy = PrivacyLevel.ApiKey)] public string ApiKey { get; set; } - [FieldDefinition(4, Label = "Send Notifications", HelpText = "Have MediaBrowser send notfications to configured providers", Type = FieldType.Checkbox)] + [FieldDefinition(4, Label = "Send Notifications", HelpText = "Have MediaBrowser send notifications to configured providers", Type = FieldType.Checkbox)] public bool Notify { get; set; } [FieldDefinition(5, Label = "Update Library", HelpText = "Update Library on Import, Rename, or Delete?", Type = FieldType.Checkbox)] diff --git a/src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs b/src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs index 8d448b384..a04b384b6 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.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index 44f887359..a763bc1c6 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -150,7 +150,7 @@ namespace NzbDrone.Core.Parser new Regex(@"^(?.+?)(?:(?:_|-|\s|\.)+(?<absoluteepisode>\d{2,3}(\.\d{1,2})?(?!\d+)))+(?:[-_. ]+(?<special>special|ova|ovd))?[-_. ]+.*?(?<hash>\[\w{8}\])(?:$|\.)", RegexOptions.IgnoreCase | RegexOptions.Compiled), - //Episodes with airdate AND season/episode number, capture season/epsiode only + //Episodes with airdate AND season/episode number, capture season/episode only new Regex(@"^(?<title>.+?)?\W*(?<airdate>\d{4}\W+[0-1][0-9]\W+[0-3][0-9])(?!\W+[0-3][0-9])[-_. ](?:s?(?<season>(?<!\d+)(?:\d{1,2})(?!\d+)))(?:[ex](?<episode>(?<!\d+)(?:\d{1,3})(?!\d+)))", RegexOptions.IgnoreCase | RegexOptions.Compiled), diff --git a/src/NzbDrone.Host/UtilityModeRouter.cs b/src/NzbDrone.Host/UtilityModeRouter.cs index ae47bb8d0..1f6db338f 100644 --- a/src/NzbDrone.Host/UtilityModeRouter.cs +++ b/src/NzbDrone.Host/UtilityModeRouter.cs @@ -77,7 +77,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/NzbDrone.Mono.Test/Sonarr.Mono.Test.csproj b/src/NzbDrone.Mono.Test/Sonarr.Mono.Test.csproj index 4e73b9912..c0d20b25f 100644 --- a/src/NzbDrone.Mono.Test/Sonarr.Mono.Test.csproj +++ b/src/NzbDrone.Mono.Test/Sonarr.Mono.Test.csproj @@ -3,7 +3,7 @@ <TargetFrameworks>net6.0</TargetFrameworks> </PropertyGroup> <!-- - The netstandard veresion here doesn't work in net framework + The netstandard version here doesn't work in net framework See https://github.com/xamarin/XamarinComponents/issues/282 --> <ItemGroup> diff --git a/src/NzbDrone.Mono/Sonarr.Mono.csproj b/src/NzbDrone.Mono/Sonarr.Mono.csproj index 84f5f70f8..27b216910 100644 --- a/src/NzbDrone.Mono/Sonarr.Mono.csproj +++ b/src/NzbDrone.Mono/Sonarr.Mono.csproj @@ -4,7 +4,7 @@ <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> </PropertyGroup> <!-- - The netstandard veresion here doesn't work in net framework + The netstandard version here doesn't work in net framework See https://github.com/xamarin/XamarinComponents/issues/282 --> <ItemGroup>