From 7d8a4abc8e75c9230d8bba5186aabf2969c63d8c Mon Sep 17 00:00:00 2001 From: luz paz Date: Sun, 30 Oct 2022 17:53:02 -0400 Subject: [PATCH] Fix various typos Found via `codespell -q3 -S ./yarn.lock,./src/NzbDrone.Core.Test,./src/NzbDrone.Core/Localization -L bitap,tempdate,uptodate` --- frontend/src/Components/SignalRConnector.js | 2 +- .../AlbumRelease/SelectAlbumReleaseModalContent.js | 2 +- src/Lidarr.Api.V1/ProviderResource.cs | 2 +- src/NzbDrone.Common.Test/Http/HttpClientFixture.cs | 2 +- src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs | 2 +- .../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 +- .../DecisionEngine/DownloadDecisionComparer.cs | 2 +- .../Specifications/UpgradableSpecification.cs | 2 +- .../Download/Clients/Transmission/TransmissionProxy.cs | 2 +- .../Extras/Metadata/ExistingMetadataImporter.cs | 2 +- .../HealthCheck/Checks/DownloadClientRootFolderCheck.cs | 2 +- .../HealthCheck/Checks/RemotePathMappingCheck.cs | 8 ++++---- src/NzbDrone.Core/History/EntityHistoryService.cs | 2 +- .../MediaFiles/TrackImport/ImportApprovedTracks.cs | 2 +- .../Specifications/ArtistPathInRootFolderSpecification.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/FingerprintingService.cs | 2 +- src/NzbDrone.Core/Parser/Parser.cs | 4 ++-- src/NzbDrone.Host/UtilityModeRouter.cs | 2 +- 24 files changed, 28 insertions(+), 28 deletions(-) diff --git a/frontend/src/Components/SignalRConnector.js b/frontend/src/Components/SignalRConnector.js index 86a4d7790..743583167 100644 --- a/frontend/src/Components/SignalRConnector.js +++ b/frontend/src/Components/SignalRConnector.js @@ -170,7 +170,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/InteractiveImport/AlbumRelease/SelectAlbumReleaseModalContent.js b/frontend/src/InteractiveImport/AlbumRelease/SelectAlbumReleaseModalContent.js index 2f83dd7f9..ae611d936 100644 --- a/frontend/src/InteractiveImport/AlbumRelease/SelectAlbumReleaseModalContent.js +++ b/frontend/src/InteractiveImport/AlbumRelease/SelectAlbumReleaseModalContent.js @@ -50,7 +50,7 @@ class SelectAlbumReleaseModalContent extends Component { scrollDirection={scrollDirections.NONE} > - Overrriding a release here will disable automatic release selection for that album in future. + Overriding a release here will disable automatic release selection for that album in future. diff --git a/src/Lidarr.Api.V1/ProviderResource.cs b/src/Lidarr.Api.V1/ProviderResource.cs index 217cc570e..444d64d53 100644 --- a/src/Lidarr.Api.V1/ProviderResource.cs +++ b/src/Lidarr.Api.V1/ProviderResource.cs @@ -38,7 +38,7 @@ namespace Lidarr.Api.V1 Tags = definition.Tags, Fields = SchemaBuilder.ToSchema(definition.Settings), - //lidarr/supported is an disambagation page. the # should be a header on the page with appropiate details/link + //lidarr/supported is an disambagation page. the # should be a header on the page with appropriate details/link InfoLink = string.Format("https://wiki.servarr.com/lidarr/supported#{0}", definition.Implementation.ToLower()) }; diff --git a/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs b/src/NzbDrone.Common.Test/Http/HttpClientFixture.cs index 6cd02333b..1f2a18916 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 a6135fd04..e750995bd 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs @@ -63,7 +63,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 f17eb467a..3327795e5 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -119,7 +119,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 c2b14c519..fb012bd1a 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 4243c78c5..6c6c8db4f 100644 --- a/src/NzbDrone.Common/ServiceProvider.cs +++ b/src/NzbDrone.Common/ServiceProvider.cs @@ -217,7 +217,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 ca7663310..c310a3223 100644 --- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs +++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs @@ -110,7 +110,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.RemoteAlbum.Release.DownloadProtocol != DownloadProtocol.Torrent || y.RemoteAlbum.Release.DownloadProtocol != DownloadProtocol.Torrent) { diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradableSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradableSpecification.cs index a471d1028..aa687be9a 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradableSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradableSpecification.cs @@ -52,7 +52,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications return ProfileComparisonResult.Equal; } - // Quality Treated as Equal if Propers are not Prefered + // Quality Treated as Equal if Propers are not Preferred if (_configService.DownloadPropersAndRepacks == ProperDownloadTypes.DoNotPrefer && newQuality.Revision.CompareTo(currentQualities.Min(q => q.Revision)) > 0) { diff --git a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionProxy.cs b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionProxy.cs index b9ae4605a..2c2334f44 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 61519dd46..d0c70d597 100644 --- a/src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs +++ b/src/NzbDrone.Core/Extras/Metadata/ExistingMetadataImporter.cs @@ -46,7 +46,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 (LyricFileExtensions.Extensions.Contains(Path.GetExtension(possibleMetadataFile))) { continue; diff --git a/src/NzbDrone.Core/HealthCheck/Checks/DownloadClientRootFolderCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/DownloadClientRootFolderCheck.cs index f54237ef4..b0d4d4540 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/HealthCheck/Checks/RemotePathMappingCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/RemotePathMappingCheck.cs index 385d1e934..e245956d4 100644 --- a/src/NzbDrone.Core/HealthCheck/Checks/RemotePathMappingCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/Checks/RemotePathMappingCheck.cs @@ -99,7 +99,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"); } } @@ -130,11 +130,11 @@ namespace NzbDrone.Core.HealthCheck.Checks { // If the file doesn't exist but TrackInfo is not null then the message is coming from // ImportApprovedTracks and the file must have been removed part way through processing - return new HealthCheck(GetType(), HealthCheckResult.Error, $"File {trackPath} was removed part way though procesing."); + return new HealthCheck(GetType(), HealthCheckResult.Error, $"File {trackPath} was removed part way through processing."); } } - // If the previous case did not match then the failure occured in DownloadedTracksImportService, + // If the previous case did not match then the failure occurred in DownloadedTracksImportService, // while trying to locate the files reported by the download client var client = _downloadClientProvider.Get(failureMessage.DownloadClientInfo.Id); try @@ -191,7 +191,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()); diff --git a/src/NzbDrone.Core/History/EntityHistoryService.cs b/src/NzbDrone.Core/History/EntityHistoryService.cs index 93c29fe8e..a50e296fb 100644 --- a/src/NzbDrone.Core/History/EntityHistoryService.cs +++ b/src/NzbDrone.Core/History/EntityHistoryService.cs @@ -100,7 +100,7 @@ namespace NzbDrone.Core.History var allHistory = _historyRepository.FindDownloadHistory(trackedDownload.TrackInfo.Artist.Id, trackedDownload.ImportedTrack.Quality); - //Find download related items for these episdoes + //Find download related items for these episodes var albumsHistory = allHistory.Where(h => albumIds.Contains(h.AlbumId)).ToList(); var processedDownloadId = albumsHistory diff --git a/src/NzbDrone.Core/MediaFiles/TrackImport/ImportApprovedTracks.cs b/src/NzbDrone.Core/MediaFiles/TrackImport/ImportApprovedTracks.cs index 7b89b343b..9b769b66a 100644 --- a/src/NzbDrone.Core/MediaFiles/TrackImport/ImportApprovedTracks.cs +++ b/src/NzbDrone.Core/MediaFiles/TrackImport/ImportApprovedTracks.cs @@ -123,7 +123,7 @@ namespace NzbDrone.Core.MediaFiles.TrackImport album.AlbumReleases = _releaseService.SetMonitored(newRelease); // Publish album edited event. - // Deliberatly don't put in the old album since we don't want to trigger an ArtistScan. + // Deliberately don't put in the old album since we don't want to trigger an ArtistScan. _eventAggregator.PublishEvent(new AlbumEditedEvent(album, album)); } diff --git a/src/NzbDrone.Core/MediaFiles/TrackImport/Specifications/ArtistPathInRootFolderSpecification.cs b/src/NzbDrone.Core/MediaFiles/TrackImport/Specifications/ArtistPathInRootFolderSpecification.cs index ed414dacc..7ca413c90 100644 --- a/src/NzbDrone.Core/MediaFiles/TrackImport/Specifications/ArtistPathInRootFolderSpecification.cs +++ b/src/NzbDrone.Core/MediaFiles/TrackImport/Specifications/ArtistPathInRootFolderSpecification.cs @@ -25,7 +25,7 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Specifications // Prevent imports to artists that are no longer inside a root folder Lidarr manages var artist = item.AlbumRelease.Album.Value.Artist.Value; - // a new artist will have empty path, and will end up having path assinged based on file location + // a new artist will have empty path, and will end up having path assigned based on file location var pathToCheck = artist.Path.IsNotNullOrWhiteSpace() ? artist.Path : item.LocalTracks.First().Path.GetParentPath(); if (_rootFolderService.GetBestRootFolder(pathToCheck) == null) diff --git a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs index 9723e2f0f..05c7513b7 100644 --- a/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs +++ b/src/NzbDrone.Core/Notifications/Mailgun/Mailgun.cs @@ -49,7 +49,7 @@ namespace NzbDrone.Core.Notifications.Mailgun const string body = "This is a test message from Lidarr, 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 ed92f97fd..9dd64d0cb 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?", Type = FieldType.Checkbox)] diff --git a/src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs b/src/NzbDrone.Core/Notifications/Twitter/TwitterService.cs index e784b64a7..9e19ef059 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/FingerprintingService.cs b/src/NzbDrone.Core/Parser/FingerprintingService.cs index e6e89ff89..c9d66a7b7 100644 --- a/src/NzbDrone.Core/Parser/FingerprintingService.cs +++ b/src/NzbDrone.Core/Parser/FingerprintingService.cs @@ -68,7 +68,7 @@ namespace NzbDrone.Core.Parser } catch (Exception ex) { - _logger.Error(ex, "Somthing went wrong detecting fpcalc"); + _logger.Error(ex, "Something went wrong detecting fpcalc"); } } diff --git a/src/NzbDrone.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index 519ff5a8a..f2a9c9192 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -123,7 +123,7 @@ namespace NzbDrone.Core.Parser RegexOptions.IgnoreCase | RegexOptions.Compiled), //Artist - Year - Album - // Hypen with no or more spaces between artist/album/year + // Hyphen with no or more spaces between artist/album/year new Regex(@"^(?:(?.+?)(?:-))(?\d{4})(?:-)(?[^-]+)", RegexOptions.IgnoreCase | RegexOptions.Compiled), }; @@ -617,7 +617,7 @@ namespace NzbDrone.Core.Parser var artistName = matchCollection[0].Groups["artist"].Value./*Removed for cases like Will.I.Am Replace('.', ' ').*/Replace('_', ' '); artistName = RequestInfoRegex.Replace(artistName, "").Trim(' '); - // Coppied from Radarr (https://github.com/Radarr/Radarr/blob/develop/src/NzbDrone.Core/Parser/Parser.cs) + // Copied from Radarr (https://github.com/Radarr/Radarr/blob/develop/src/NzbDrone.Core/Parser/Parser.cs) // TODO: Split into separate method and write unit tests for. var parts = artistName.Split('.'); artistName = ""; diff --git a/src/NzbDrone.Host/UtilityModeRouter.cs b/src/NzbDrone.Host/UtilityModeRouter.cs index 60135e2bd..a047032f3 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;