Fix various typos

Found via `codespell -q3 -S ./yarn.lock,./src/NzbDrone.Core.Test,./src/NzbDrone.Core/Localization -L bitap,tempdate,uptodate`
pull/3061/head
luz paz 2 years ago committed by Qstick
parent 940070eb9d
commit 7d8a4abc8e

@ -170,7 +170,7 @@ class SignalRConnector extends Component {
const resource = body.resource; const resource = body.resource;
const status = resource.status; 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. // completed, otherwise they spin until they timeout.
if (status === 'completed' || status === 'failed') { if (status === 'completed' || status === 'failed') {

@ -50,7 +50,7 @@ class SelectAlbumReleaseModalContent extends Component {
scrollDirection={scrollDirections.NONE} scrollDirection={scrollDirections.NONE}
> >
<Alert> <Alert>
Overrriding a release here will <b>disable automatic release selection</b> for that album in future. Overriding a release here will <b>disable automatic release selection</b> for that album in future.
</Alert> </Alert>
<Scroller className={styles.scroller}> <Scroller className={styles.scroller}>

@ -38,7 +38,7 @@ namespace Lidarr.Api.V1
Tags = definition.Tags, Tags = definition.Tags,
Fields = SchemaBuilder.ToSchema(definition.Settings), 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}", InfoLink = string.Format("https://wiki.servarr.com/lidarr/supported#{0}",
definition.Implementation.ToLower()) definition.Implementation.ToLower())
}; };

@ -46,7 +46,7 @@ namespace NzbDrone.Common.Test.Http
// Use mirrors for tests that use two hosts // Use mirrors for tests that use two hosts
var candidates = new[] { "httpbin1.servarr.com" }; 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; _httpBinHost = mainHost;
_httpBinHosts = candidates.Where(IsTestSiteAvailable).ToArray(); _httpBinHosts = candidates.Where(IsTestSiteAvailable).ToArray();

@ -63,7 +63,7 @@ namespace NzbDrone.Common.EnvironmentInfo
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.Warn(ex, "Coudn't set app folder permission"); _logger.Warn(ex, "Couldn't set app folder permission");
} }
} }

@ -119,7 +119,7 @@ namespace NzbDrone.Common.Instrumentation.Sentry
_debounce = new SentryDebounce(); _debounce = new SentryDebounce();
// initialize to true and reconfigure later // 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 // before config file gets read will not be filtered
FilterEvents = true; FilterEvents = true;
SentryEnabled = true; SentryEnabled = true;

@ -260,7 +260,7 @@ namespace NzbDrone.Common.OAuth
} }
/// <summary> /// <summary>
/// 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. /// This is also known as the signature base.
/// </summary> /// </summary>
/// <seealso href="http://oauth.net/core/1.0#rfc.section.9.1.3"/> /// <seealso href="http://oauth.net/core/1.0#rfc.section.9.1.3"/>

@ -217,7 +217,7 @@ namespace NzbDrone.Common
if (dacls.Contains(authenticatedUsersDacl)) if (dacls.Contains(authenticatedUsersDacl))
{ {
// Permssions already set // Permissions already set
return; return;
} }

@ -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>

@ -110,7 +110,7 @@ namespace NzbDrone.Core.DecisionEngine
private int ComparePeersIfTorrent(DownloadDecision x, DownloadDecision y) private int ComparePeersIfTorrent(DownloadDecision x, DownloadDecision y)
{ {
// Different protocols should get caught when checking the preferred protocol, // 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 || if (x.RemoteAlbum.Release.DownloadProtocol != DownloadProtocol.Torrent ||
y.RemoteAlbum.Release.DownloadProtocol != DownloadProtocol.Torrent) y.RemoteAlbum.Release.DownloadProtocol != DownloadProtocol.Torrent)
{ {

@ -52,7 +52,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return ProfileComparisonResult.Equal; 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 && if (_configService.DownloadPropersAndRepacks == ProperDownloadTypes.DoNotPrefer &&
newQuality.Revision.CompareTo(currentQualities.Min(q => q.Revision)) > 0) newQuality.Revision.CompareTo(currentQualities.Min(q => q.Revision)) > 0)
{ {

@ -141,7 +141,7 @@ namespace NzbDrone.Core.Download.Clients.Transmission
private TransmissionResponse GetSessionVariables(TransmissionSettings settings) 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); return ProcessRequest("session-get", null, settings);
} }

@ -46,7 +46,7 @@ namespace NzbDrone.Core.Extras.Metadata
foreach (var possibleMetadataFile in filterResult.FilesOnDisk) 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))) if (LyricFileExtensions.Extensions.Contains(Path.GetExtension(possibleMetadataFile)))
{ {
continue; continue;

@ -57,7 +57,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.Error(ex, "Unknown error occured in DownloadClientRootFolderCheck HealthCheck"); _logger.Error(ex, "Unknown error occurred in DownloadClientRootFolderCheck HealthCheck");
} }
} }

@ -99,7 +99,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
} }
catch (Exception ex) 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 // 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 // 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 // while trying to locate the files reported by the download client
var client = _downloadClientProvider.Get(failureMessage.DownloadClientInfo.Id); var client = _downloadClientProvider.Get(failureMessage.DownloadClientInfo.Id);
try try
@ -191,7 +191,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
} }
catch (Exception ex) 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()); return new HealthCheck(GetType());

@ -100,7 +100,7 @@ namespace NzbDrone.Core.History
var allHistory = _historyRepository.FindDownloadHistory(trackedDownload.TrackInfo.Artist.Id, trackedDownload.ImportedTrack.Quality); 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 albumsHistory = allHistory.Where(h => albumIds.Contains(h.AlbumId)).ToList();
var processedDownloadId = albumsHistory var processedDownloadId = albumsHistory

@ -123,7 +123,7 @@ namespace NzbDrone.Core.MediaFiles.TrackImport
album.AlbumReleases = _releaseService.SetMonitored(newRelease); album.AlbumReleases = _releaseService.SetMonitored(newRelease);
// Publish album edited event. // 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)); _eventAggregator.PublishEvent(new AlbumEditedEvent(album, album));
} }

@ -25,7 +25,7 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Specifications
// Prevent imports to artists that are no longer inside a root folder Lidarr manages // Prevent imports to artists that are no longer inside a root folder Lidarr manages
var artist = item.AlbumRelease.Album.Value.Artist.Value; 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(); var pathToCheck = artist.Path.IsNotNullOrWhiteSpace() ? artist.Path : item.LocalTracks.First().Path.GetParentPath();
if (_rootFolderService.GetBestRootFolder(pathToCheck) == null) if (_rootFolderService.GetBestRootFolder(pathToCheck) == null)

@ -49,7 +49,7 @@ namespace NzbDrone.Core.Notifications.Mailgun
const string body = "This is a test message from Lidarr, though Mailgun."; const string body = "This is a test message from Lidarr, 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)
{ {

@ -36,7 +36,7 @@ namespace NzbDrone.Core.Notifications.Emby
[FieldDefinition(3, Label = "API Key", Privacy = PrivacyLevel.ApiKey)] [FieldDefinition(3, Label = "API Key", Privacy = PrivacyLevel.ApiKey)]
public string ApiKey { get; set; } 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; } public bool Notify { get; set; }
[FieldDefinition(5, Label = "Update Library", HelpText = "Update Library on Import & Rename?", Type = FieldType.Checkbox)] [FieldDefinition(5, Label = "Update Library", HelpText = "Update Library on Import & Rename?", Type = FieldType.Checkbox)]

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

@ -68,7 +68,7 @@ namespace NzbDrone.Core.Parser
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.Error(ex, "Somthing went wrong detecting fpcalc"); _logger.Error(ex, "Something went wrong detecting fpcalc");
} }
} }

@ -123,7 +123,7 @@ namespace NzbDrone.Core.Parser
RegexOptions.IgnoreCase | RegexOptions.Compiled), RegexOptions.IgnoreCase | RegexOptions.Compiled),
//Artist - Year - Album //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(@"^(?:(?<artist>.+?)(?:-))(?<releaseyear>\d{4})(?:-)(?<album>[^-]+)", new Regex(@"^(?:(?<artist>.+?)(?:-))(?<releaseyear>\d{4})(?:-)(?<album>[^-]+)",
RegexOptions.IgnoreCase | RegexOptions.Compiled), 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('_', ' '); var artistName = matchCollection[0].Groups["artist"].Value./*Removed for cases like Will.I.Am Replace('.', ' ').*/Replace('_', ' ');
artistName = RequestInfoRegex.Replace(artistName, "").Trim(' '); 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. // TODO: Split into separate method and write unit tests for.
var parts = artistName.Split('.'); var parts = artistName.Split('.');
artistName = ""; artistName = "";

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

Loading…
Cancel
Save