From 260fb88f859c39644642669f4622161f7310d7e0 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` (cherry picked from commit 209a250079fdf7ad2bc9168f81bfb45b9531d6b3) --- .../ImportMovie/Import/SelectMovie/ImportMovieSelectMovie.css | 2 +- frontend/src/Components/SignalRConnector.js | 2 +- src/NzbDrone.Common.Test/Http/HttpClientFixture.cs | 2 +- src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.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 +- src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs | 2 +- .../Download/Clients/Transmission/TransmissionProxy.cs | 3 ++- src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs | 3 ++- 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.Host/UtilityModeRouter.cs | 2 +- src/NzbDrone.Mono.Test/Radarr.Mono.Test.csproj | 2 +- src/NzbDrone.Mono/Radarr.Mono.csproj | 2 +- 18 files changed, 20 insertions(+), 18 deletions(-) diff --git a/frontend/src/AddMovie/ImportMovie/Import/SelectMovie/ImportMovieSelectMovie.css b/frontend/src/AddMovie/ImportMovie/Import/SelectMovie/ImportMovieSelectMovie.css index f8d51d2a2..274af2ad0 100644 --- a/frontend/src/AddMovie/ImportMovie/Import/SelectMovie/ImportMovieSelectMovie.css +++ b/frontend/src/AddMovie/ImportMovie/Import/SelectMovie/ImportMovieSelectMovie.css @@ -32,7 +32,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 0a339376d..0294a6d54 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/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs b/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs index cfc6e8a4f..3b7da9a70 100644 --- a/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs +++ b/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs @@ -47,7 +47,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 048685d88..84bb2ad9c 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs @@ -67,7 +67,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/Instrumentation/Sentry/SentryTarget.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs index e35952b7a..94aeae0d6 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -123,7 +123,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; SentryEnabled = true; diff --git a/src/NzbDrone.Common/OAuth/OAuthTools.cs b/src/NzbDrone.Common/OAuth/OAuthTools.cs index 6bd744a68..9d4b14aab 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 06b09968c..c66b2d3ca 100644 --- a/src/NzbDrone.Common/ServiceProvider.cs +++ b/src/NzbDrone.Common/ServiceProvider.cs @@ -215,7 +215,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/DecisionEngine/DownloadDecisionComparer.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs index 115e6702a..69d5c8d80 100644 --- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs +++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs @@ -108,7 +108,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 movie in our comparisions + // since we're dealing with the same movie in our comparisons if (x.RemoteMovie.Release.DownloadProtocol != DownloadProtocol.Torrent || y.RemoteMovie.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 1172b600a..76086ae0d 100644 --- a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionProxy.cs +++ b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionProxy.cs @@ -141,7 +141,8 @@ 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 4c2662303..ec9b28d07 100644 --- a/src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs +++ b/src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs @@ -40,7 +40,8 @@ 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))) { continue; diff --git a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs index f73d0b7dd..94c1d0792 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs @@ -93,7 +93,7 @@ namespace NzbDrone.Core.ImportLists if (excludedMovie != null) { - _logger.Debug("{0} [{1}] Rejected due to list exlcusion", report.TmdbId, report.Title); + _logger.Debug("{0} [{1}] Rejected due to list exclusion", report.TmdbId, report.Title); return; } diff --git a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs index d6c3dfe25..49e98c445 100644 --- a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs +++ b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs @@ -79,7 +79,7 @@ namespace NzbDrone.Core.Notifications.Mailgun const string body = "This is a test message from Radarr, 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 05a995802..c9102f7c8 100644 --- a/src/NzbDrone.Core/Notifications/MediaBrowser/MediaBrowserSettings.cs +++ b/src/NzbDrone.Core/Notifications/MediaBrowser/MediaBrowserSettings.cs @@ -37,7 +37,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 29ffa78bf..22e7fb81d 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 5bbd9e69e..808fb53c9 100644 --- a/src/NzbDrone.Host/UtilityModeRouter.cs +++ b/src/NzbDrone.Host/UtilityModeRouter.cs @@ -80,7 +80,7 @@ namespace NzbDrone.Host case ApplicationModes.RegisterUrl: { - _logger.Debug("Regiser URL selected"); + _logger.Debug("Register URL selected"); _remoteAccessAdapter.MakeAccessible(false); _appFolderFactory.SetPermissions(); diff --git a/src/NzbDrone.Mono.Test/Radarr.Mono.Test.csproj b/src/NzbDrone.Mono.Test/Radarr.Mono.Test.csproj index 62a56b369..9bfb6f830 100644 --- a/src/NzbDrone.Mono.Test/Radarr.Mono.Test.csproj +++ b/src/NzbDrone.Mono.Test/Radarr.Mono.Test.csproj @@ -3,7 +3,7 @@ net6.0 diff --git a/src/NzbDrone.Mono/Radarr.Mono.csproj b/src/NzbDrone.Mono/Radarr.Mono.csproj index a5624628d..9e169737d 100644 --- a/src/NzbDrone.Mono/Radarr.Mono.csproj +++ b/src/NzbDrone.Mono/Radarr.Mono.csproj @@ -4,7 +4,7 @@ true