diff --git a/README.md b/README.md index e7dc0c9a..61473ba3 100644 --- a/README.md +++ b/README.md @@ -66,4 +66,4 @@ Disclaimer: I've made every good-faith effort to include nothing insecure, malicious, anti-privacy, or destructive. That said: use at your own risk. -I made this for myself and I want to share it with the great programming and audible/audiobook communiites which have been so generous with their time and help. +I made this for myself and I want to share it with the great programming and audible/audiobook communities which have been so generous with their time and help. diff --git a/Source/AaxDecrypter/NetworkFileStream.cs b/Source/AaxDecrypter/NetworkFileStream.cs index 8f2079f1..d03e44f8 100644 --- a/Source/AaxDecrypter/NetworkFileStream.cs +++ b/Source/AaxDecrypter/NetworkFileStream.cs @@ -218,7 +218,7 @@ namespace AaxDecrypter } /// - /// Downlod to . + /// Download to . /// private void DownloadFile() { diff --git a/Source/AppScaffolding/LibationScaffolding.cs b/Source/AppScaffolding/LibationScaffolding.cs index 411bc886..9d368246 100644 --- a/Source/AppScaffolding/LibationScaffolding.cs +++ b/Source/AppScaffolding/LibationScaffolding.cs @@ -470,7 +470,7 @@ namespace AppScaffolding } catch (Exception ex) { - Serilog.Log.Logger.Error(ex, "An error occured while running database migrations in {0}", nameof(migrate_from_7_10_1)); + Serilog.Log.Logger.Error(ex, "An error occurred while running database migrations in {0}", nameof(migrate_from_7_10_1)); config.SetObject($"{nameof(migrate_from_7_10_1)}_ThrewError", true); } } diff --git a/Source/ApplicationServices/LibraryCommands.cs b/Source/ApplicationServices/LibraryCommands.cs index 65e6d117..56c64e2d 100644 --- a/Source/ApplicationServices/LibraryCommands.cs +++ b/Source/ApplicationServices/LibraryCommands.cs @@ -134,7 +134,7 @@ namespace ApplicationServices if (newParents >= 0) { //If any episodes are still orphaned, their series have been - //removed from the catalog and wel'll never be able to find them. + //removed from the catalog and we'll never be able to find them. //only do this if findAndAddMissingParents returned >= 0. If it //returned < 0, an error happened and there's still a chance that @@ -251,7 +251,7 @@ namespace ApplicationServices } catch (Exception ex) { - Serilog.Log.Logger.Error(ex, "An error occured while trying to remove orphaned episodes from the database"); + Serilog.Log.Logger.Error(ex, "An error occurred while trying to remove orphaned episodes from the database"); } } @@ -274,7 +274,7 @@ namespace ApplicationServices .DistinctBy(s => s.Series.AudibleSeriesId) .ToList(); - // The Catalog endpointdoes not require authentication. + // The Catalog endpoint does not require authentication. var api = new ApiUnauthenticated(accounts[0].Locale); var seriesParents = orphanedSeries.Select(o => o.Series.AudibleSeriesId).ToList(); @@ -308,7 +308,7 @@ namespace ApplicationServices } catch (Exception ex) { - Serilog.Log.Logger.Error(ex, "An error occured while trying to scan for orphaned episode parents."); + Serilog.Log.Logger.Error(ex, "An error occurred while trying to scan for orphaned episode parents."); return -1; } } @@ -321,7 +321,7 @@ namespace ApplicationServices } catch (Microsoft.EntityFrameworkCore.DbUpdateException ex) { - // DbUpdateException exceptions can wreck serilog. Condense it until we can find a better solution. I suspect the culpret is the "WithExceptionDetails" serilog extension + // DbUpdateException exceptions can wreck serilog. Condense it until we can find a better solution. I suspect the culprit is the "WithExceptionDetails" serilog extension static string format(Exception ex) => $"\r\nMessage: {ex.Message}\r\nStack Trace:\r\n{ex.StackTrace}"; diff --git a/Source/AudibleUtilities/ApiExtended.cs b/Source/AudibleUtilities/ApiExtended.cs index 4290be72..28fbd14f 100644 --- a/Source/AudibleUtilities/ApiExtended.cs +++ b/Source/AudibleUtilities/ApiExtended.cs @@ -145,7 +145,7 @@ namespace AudibleUtilities Serilog.Log.Logger.Debug("Library scan complete. Found {count} books and series. Waiting on {getChildEpisodesTasksCount} series episode scans to complete.", count, getChildEpisodesTasks.Count); - //await and add all episides from all parents + //await and add all episodes from all parents foreach (var epList in await Task.WhenAll(getChildEpisodesTasks)) items.AddRange(epList); diff --git a/Source/FileLiberator/DownloadDecryptBook.cs b/Source/FileLiberator/DownloadDecryptBook.cs index 906acca3..45eda535 100644 --- a/Source/FileLiberator/DownloadDecryptBook.cs +++ b/Source/FileLiberator/DownloadDecryptBook.cs @@ -261,7 +261,7 @@ namespace FileLiberator var realDest = FileUtility.SaferMoveToValidPath(entry.Path, Path.Combine(destinationDir, Path.GetFileName(entry.Path))); FilePathCache.Insert(libraryBook.Book.AudibleProductId, realDest); - // propogate corrected path. Must update cache with corrected path. Also want updated path for cue file (after this for-loop) + // propagate corrected path. Must update cache with corrected path. Also want updated path for cue file (after this for-loop) entries[i] = entry with { Path = realDest }; } diff --git a/Source/FileManager/FileUtility.cs b/Source/FileManager/FileUtility.cs index 54bb3320..e4577e65 100644 --- a/Source/FileManager/FileUtility.cs +++ b/Source/FileManager/FileUtility.cs @@ -79,11 +79,11 @@ namespace FileManager // GetInvalidFileNameChars contains everything in GetInvalidPathChars plus ':', '*', '?', '\\', '/' - /// Use with file name, not full path. Valid path charaters which are invalid file name characters will be replaced: ':', '\\', '/' + /// Use with file name, not full path. Valid path characters which are invalid file name characters will be replaced: ':', '\\', '/' public static string GetSafeFileName(string str, string illegalCharacterReplacements = "") => string.Join(illegalCharacterReplacements ?? "", str.Split(Path.GetInvalidFileNameChars())); - /// Use with full path, not file name. Valid path charaters which are invalid file name characters will be retained: '\\', '/' + /// Use with full path, not file name. Valid path characters which are invalid file name characters will be retained: '\\', '/' public static LongPath GetSafePath(LongPath path, string illegalCharacterReplacements = "") { ArgumentValidator.EnsureNotNull(path, nameof(path)); @@ -191,7 +191,7 @@ namespace FileManager // regex is easier by ending with separator fullfilename += Path.DirectorySeparatorChar; fullfilename = removeInvalidWhitespace_regex.Replace(fullfilename, Path.DirectorySeparatorChar.ToString()); - // take seperator back off + // take separator back off fullfilename = RemoveLastCharacter(fullfilename); fullfilename = removeDoubleSlashes(fullfilename); diff --git a/Source/LibationWinForms/Dialogs/AccountsDialog.cs b/Source/LibationWinForms/Dialogs/AccountsDialog.cs index 0f04bb7c..d60c2f1e 100644 --- a/Source/LibationWinForms/Dialogs/AccountsDialog.cs +++ b/Source/LibationWinForms/Dialogs/AccountsDialog.cs @@ -252,7 +252,7 @@ namespace LibationWinForms.Dialogs { MessageBoxLib.ShowAdminAlert( this, - $"An error occured while exporting account:\r\n{account.AccountName}", + $"An error occurred while exporting account:\r\n{account.AccountName}", "Error Exporting Account", ex); } @@ -294,7 +294,7 @@ namespace LibationWinForms.Dialogs { MessageBoxLib.ShowAdminAlert( this, - $"An error occured while importing an account from:\r\n{ofd.FileName}\r\n\r\nIs the file encrypted?", + $"An error occurred while importing an account from:\r\n{ofd.FileName}\r\n\r\nIs the file encrypted?", "Error Importing Account", ex); } diff --git a/Source/LibationWinForms/Form1.ScanNotification.cs b/Source/LibationWinForms/Form1.ScanNotification.cs index dc70537d..8537053d 100644 --- a/Source/LibationWinForms/Form1.ScanNotification.cs +++ b/Source/LibationWinForms/Form1.ScanNotification.cs @@ -3,7 +3,7 @@ using ApplicationServices; namespace LibationWinForms { - // This is for the Scanning notificationin the upper right. This shown for manual scanning and auto-scan + // This is for the Scanning notification in the upper right. This shown for manual scanning and auto-scan public partial class Form1 { private void Configure_ScanNotification() diff --git a/Source/LibationWinForms/Program.cs b/Source/LibationWinForms/Program.cs index 2abbea83..fd933c32 100644 --- a/Source/LibationWinForms/Program.cs +++ b/Source/LibationWinForms/Program.cs @@ -87,7 +87,7 @@ namespace LibationWinForms var defaultLibationFilesDir = Configuration.UserProfile; - // check for existing settigns in default location + // check for existing settings in default location var defaultSettingsFile = Path.Combine(defaultLibationFilesDir, "Settings.json"); if (Configuration.SettingsFileIsValid(defaultSettingsFile)) config.SetLibationFiles(defaultLibationFilesDir); diff --git a/Source/LibationWinForms/Updater.cs b/Source/LibationWinForms/Updater.cs index 1506f924..9660c7ce 100644 --- a/Source/LibationWinForms/Updater.cs +++ b/Source/LibationWinForms/Updater.cs @@ -29,7 +29,7 @@ namespace LibationWinForms return; var dialogResult = MessageBox.Show(string.Format( - $"There is a new version avilable. Would you like to update?\r\n\r\nAfter you close Libation, the upgrade will start automatically."), + $"There is a new version available. Would you like to update?\r\n\r\nAfter you close Libation, the upgrade will start automatically."), "Update Available", MessageBoxButtons.YesNo, MessageBoxIcon.Information); diff --git a/Source/__README - COLLABORATORS.txt b/Source/__README - COLLABORATORS.txt index 5c131701..ea624b59 100644 --- a/Source/__README - COLLABORATORS.txt +++ b/Source/__README - COLLABORATORS.txt @@ -20,7 +20,7 @@ STRUCTURE * Folders in the solution are numbered. Eg: "4 Domain (db)" * All projects should only refer to other projects in the same folder or to projects in folders with smaller numbers. * 1 Core Libraries - This is code which has roughly equivilent priority and knowledge as the BCL. In practice, if code is this universal then it doesn't live here long and is instead moved into Dinah.Core. + This is code which has roughly equivalent priority and knowledge as the BCL. In practice, if code is this universal then it doesn't live here long and is instead moved into Dinah.Core. * 2 Utilities (domain ignorant) Stand-alone libraries with no knowledge of anything having to do with Libation or other programs. In theory any of these should be able to one day be converted to a nuget pkg * 3 Domain Internal Utilities (db ignorant)