mirror of
https://github.com/Radarr/Radarr
synced 2025-12-06 08:28:50 +01:00
Fix various typos
This commit is contained in:
parent
f3026df65d
commit
8485fc8c75
20 changed files with 30 additions and 30 deletions
|
|
@ -9,7 +9,7 @@ function createMapStateToProps() {
|
||||||
createCollectionSelector(),
|
createCollectionSelector(),
|
||||||
(collection) => {
|
(collection) => {
|
||||||
// If a movie is deleted this selector may fire before the parent
|
// If a movie is deleted this selector may fire before the parent
|
||||||
// selecors, which will result in an undefined movie, if that happens
|
// selectors, which will result in an undefined movie, if that happens
|
||||||
// we want to return early here and again in the render function to avoid
|
// we want to return early here and again in the render function to avoid
|
||||||
// trying to show a movie that has no information available.
|
// trying to show a movie that has no information available.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ function createMapStateToProps() {
|
||||||
) => {
|
) => {
|
||||||
|
|
||||||
// If a movie is deleted this selector may fire before the parent
|
// If a movie is deleted this selector may fire before the parent
|
||||||
// selecors, which will result in an undefined movie, if that happens
|
// selectors, which will result in an undefined movie, if that happens
|
||||||
// we want to return early here and again in the render function to avoid
|
// we want to return early here and again in the render function to avoid
|
||||||
// trying to show a movie that has no information available.
|
// trying to show a movie that has no information available.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.createGroupButton {
|
.createGroupButton {
|
||||||
composes: buton from '~Components/Link/IconButton.css';
|
composes: button from '~Components/Link/IconButton.css';
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.deleteGroupButton {
|
.deleteGroupButton {
|
||||||
composes: buton from '~Components/Link/IconButton.css';
|
composes: button from '~Components/Link/IconButton.css';
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
|
|
@ -326,7 +326,7 @@ export const reducers = createHandleActions({
|
||||||
const items = newState.items;
|
const items = newState.items;
|
||||||
const index = items.findIndex((item) => item.guid === guid);
|
const index = items.findIndex((item) => item.guid === guid);
|
||||||
|
|
||||||
// Don't try to update if there isnt a matching item (the user closed the modal)
|
// Don't try to update if there isn't a matching item (the user closed the modal)
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
const item = Object.assign({}, items[index], payload);
|
const item = Object.assign({}, items[index], payload);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import { createSelector } from 'reselect';
|
||||||
import { isCommandExecuting } from 'Utilities/Command';
|
import { isCommandExecuting } from 'Utilities/Command';
|
||||||
import createCommandSelector from './createCommandSelector';
|
import createCommandSelector from './createCommandSelector';
|
||||||
|
|
||||||
function createCommandExecutingSelector(name: string, contraints = {}) {
|
function createCommandExecutingSelector(name: string, constraints = {}) {
|
||||||
return createSelector(createCommandSelector(name, contraints), (command) => {
|
return createSelector(createCommandSelector(name, constraints), (command) => {
|
||||||
return isCommandExecuting(command);
|
return isCommandExecuting(command);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ import { createSelector } from 'reselect';
|
||||||
import { findCommand } from 'Utilities/Command';
|
import { findCommand } from 'Utilities/Command';
|
||||||
import createCommandsSelector from './createCommandsSelector';
|
import createCommandsSelector from './createCommandsSelector';
|
||||||
|
|
||||||
function createCommandSelector(name: string, contraints = {}) {
|
function createCommandSelector(name: string, constraints = {}) {
|
||||||
return createSelector(createCommandsSelector(), (commands) => {
|
return createSelector(createCommandsSelector(), (commands) => {
|
||||||
return findCommand(commands, { name, ...contraints });
|
return findCommand(commands, { name, ...constraints });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ public void should_return_version()
|
||||||
[Test]
|
[Test]
|
||||||
public void should_get_branch()
|
public void should_get_branch()
|
||||||
{
|
{
|
||||||
BuildInfo.Branch.Should().NotBe("unknow");
|
BuildInfo.Branch.Should().NotBe("unknown");
|
||||||
BuildInfo.Branch.Should().NotBeNullOrWhiteSpace();
|
BuildInfo.Branch.Should().NotBeNullOrWhiteSpace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ static BuildInfo()
|
||||||
|
|
||||||
var attributes = assembly.GetCustomAttributes(true);
|
var attributes = assembly.GetCustomAttributes(true);
|
||||||
|
|
||||||
Branch = "unknow";
|
Branch = "unknown";
|
||||||
|
|
||||||
var config = attributes.OfType<AssemblyConfigurationAttribute>().FirstOrDefault();
|
var config = attributes.OfType<AssemblyConfigurationAttribute>().FirstOrDefault();
|
||||||
if (config != null)
|
if (config != null)
|
||||||
|
|
|
||||||
|
|
@ -346,7 +346,7 @@ private List<Process> GetProcessesByName(string name)
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
// Don't crash on gettings some log data.
|
// Don't crash on getting some log data.
|
||||||
}
|
}
|
||||||
|
|
||||||
return processes;
|
return processes;
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ protected virtual Expression VisitUnary(UnaryExpression expression)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Visits the lamda expression.
|
/// Visits the lambda expression.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="lambdaExpression"></param>
|
/// <param name="lambdaExpression"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ public static string ToUrlSlug(string value)
|
||||||
// Trim dashes from end
|
// Trim dashes from end
|
||||||
value = value.Trim('-', '_');
|
value = value.Trim('-', '_');
|
||||||
|
|
||||||
// Replace double occurences of - or _
|
// Replace double occurrences of - or _
|
||||||
value = Regex.Replace(value, @"([-_]){2,}", "$1", RegexOptions.Compiled);
|
value = Regex.Replace(value, @"([-_]){2,}", "$1", RegexOptions.Compiled);
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ protected override void MainDbUpgrade()
|
||||||
Execute.Sql("UPDATE \"NamingConfig\" SET \"RenameMovies\"=\"RenameEpisodes\"");
|
Execute.Sql("UPDATE \"NamingConfig\" SET \"RenameMovies\"=\"RenameEpisodes\"");
|
||||||
Delete.Column("RenameEpisodes").FromTable("NamingConfig");
|
Delete.Column("RenameEpisodes").FromTable("NamingConfig");
|
||||||
|
|
||||||
// Manual SQL, Fluent Migrator doesn't support multi-column unique contraint on table creation, SQLite doesn't support adding it after creation
|
// Manual SQL, Fluent Migrator doesn't support multi-column unique constraint on table creation, SQLite doesn't support adding it after creation
|
||||||
IfDatabase("sqlite").Execute.Sql("CREATE TABLE \"MovieTranslations\"(" +
|
IfDatabase("sqlite").Execute.Sql("CREATE TABLE \"MovieTranslations\"(" +
|
||||||
"\"Id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " +
|
"\"Id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " +
|
||||||
"\"MovieId\" INTEGER NOT NULL, " +
|
"\"MovieId\" INTEGER NOT NULL, " +
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ private void FixMovies(IDbConnection conn, IDbTransaction tran)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If all the movie profiles are bad or there are no movies, just use the first profile for bad movies and lsits
|
// If all the movie profiles are bad or there are no movies, just use the first profile for bad movies and lists
|
||||||
if (mostCommonProfileId == 0)
|
if (mostCommonProfileId == 0)
|
||||||
{
|
{
|
||||||
mostCommonProfileId = profiles.First();
|
mostCommonProfileId = profiles.First();
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ static FreeboxDownloadTask()
|
||||||
{ "bt_file_error", "Error accessing torrent files." },
|
{ "bt_file_error", "Error accessing torrent files." },
|
||||||
{ "missing_ctx_file", "Error accessing task context file." },
|
{ "missing_ctx_file", "Error accessing task context file." },
|
||||||
{ "nzb_no_group", "Cannot find the requested group on server." },
|
{ "nzb_no_group", "Cannot find the requested group on server." },
|
||||||
{ "nzb_not_found", "Article not fount on the server." },
|
{ "nzb_not_found", "Article not found on the server." },
|
||||||
{ "nzb_invalid_crc", "Invalid article CRC." },
|
{ "nzb_invalid_crc", "Invalid article CRC." },
|
||||||
{ "nzb_invalid_size", "Invalid article size." },
|
{ "nzb_invalid_size", "Invalid article size." },
|
||||||
{ "nzb_invalid_filename", "Invalid filename." },
|
{ "nzb_invalid_filename", "Invalid filename." },
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ public override IEnumerable<DownloadClientItem> GetItems()
|
||||||
case FreeboxDownloadTaskStatus.Starting: // task is preparing to start download
|
case FreeboxDownloadTaskStatus.Starting: // task is preparing to start download
|
||||||
case FreeboxDownloadTaskStatus.Downloading:
|
case FreeboxDownloadTaskStatus.Downloading:
|
||||||
case FreeboxDownloadTaskStatus.Retry: // you can set a task status to ‘retry’ to restart the download task.
|
case FreeboxDownloadTaskStatus.Retry: // you can set a task status to ‘retry’ to restart the download task.
|
||||||
case FreeboxDownloadTaskStatus.Checking: // checking data before lauching download.
|
case FreeboxDownloadTaskStatus.Checking: // checking data before launching download.
|
||||||
item.Status = DownloadItemStatus.Downloading;
|
item.Status = DownloadItemStatus.Downloading;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ public override HealthCheck Check()
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Error(ex, "Unknown error occured in RemotePathMapping HealthCheck");
|
_logger.Error(ex, "Unknown error occurred in RemotePathMapping HealthCheck");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -217,7 +217,7 @@ public HealthCheck Check(IEvent message)
|
||||||
"#remote-path-file-removed");
|
"#remote-path-file-removed");
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the previous case did not match then the failure occured in DownloadedMovieImportService,
|
// If the previous case did not match then the failure occurred in DownloadedMovieImportService,
|
||||||
// while trying to locate the files reported by the download client
|
// while trying to locate the files reported by the download client
|
||||||
// Only check clients not in failure status, those get another message
|
// Only check clients not in failure status, those get another message
|
||||||
var client = _downloadClientProvider.GetDownloadClients(true).FirstOrDefault(x => x.Definition.Name == failureMessage.DownloadClientInfo.Name);
|
var client = _downloadClientProvider.GetDownloadClients(true).FirstOrDefault(x => x.Definition.Name == failureMessage.DownloadClientInfo.Name);
|
||||||
|
|
@ -359,7 +359,7 @@ public HealthCheck Check(IEvent message)
|
||||||
}
|
}
|
||||||
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());
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ public TraktPopularSettingsValidator()
|
||||||
RuleFor(c => c.Certification)
|
RuleFor(c => c.Certification)
|
||||||
.Matches(@"^\bNR\b|\bG\b|\bPG\b|\bPG\-13\b|\bR\b|\bNC\-17\b$", RegexOptions.IgnoreCase)
|
.Matches(@"^\bNR\b|\bG\b|\bPG\b|\bPG\-13\b|\bR\b|\bNC\-17\b$", RegexOptions.IgnoreCase)
|
||||||
.When(c => c.Certification.IsNotNullOrWhiteSpace())
|
.When(c => c.Certification.IsNotNullOrWhiteSpace())
|
||||||
.WithMessage("Not a valid cerification");
|
.WithMessage("Not a valid certification");
|
||||||
|
|
||||||
// Loose validation @TODO
|
// Loose validation @TODO
|
||||||
RuleFor(c => c.Years)
|
RuleFor(c => c.Years)
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ public class MovieResource
|
||||||
public string OriginalTitle { get; set; }
|
public string OriginalTitle { get; set; }
|
||||||
public string TitleSlug { get; set; }
|
public string TitleSlug { get; set; }
|
||||||
|
|
||||||
// Depricated but left in place until cache fills new object (MovieRatings)
|
// Deprecated but left in place until cache fills new object (MovieRatings)
|
||||||
public List<RatingItem> Ratings { get; set; }
|
public List<RatingItem> Ratings { get; set; }
|
||||||
public RatingResource MovieRatings { get; set; }
|
public RatingResource MovieRatings { get; set; }
|
||||||
public int? Runtime { get; set; }
|
public int? Runtime { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ public static class QualityFinder
|
||||||
{
|
{
|
||||||
private static readonly Logger Logger = NzbDroneLogger.GetLogger(typeof(QualityFinder));
|
private static readonly Logger Logger = NzbDroneLogger.GetLogger(typeof(QualityFinder));
|
||||||
|
|
||||||
public static Quality FindBySourceAndResolution(QualitySource source, int resolution, Modifier modifer)
|
public static Quality FindBySourceAndResolution(QualitySource source, int resolution, Modifier modifier)
|
||||||
{
|
{
|
||||||
// Check for a perfect 3-way match
|
// Check for a perfect 3-way match
|
||||||
var matchingQuality = Quality.All.SingleOrDefault(q => q.Source == source && q.Resolution == resolution && q.Modifier == modifer);
|
var matchingQuality = Quality.All.SingleOrDefault(q => q.Source == source && q.Resolution == resolution && q.Modifier == modifier);
|
||||||
|
|
||||||
if (matchingQuality != null)
|
if (matchingQuality != null)
|
||||||
{
|
{
|
||||||
|
|
@ -19,11 +19,11 @@ public static Quality FindBySourceAndResolution(QualitySource source, int resolu
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for Source and Modifier Match for Qualities with Unknown Resolution
|
// Check for Source and Modifier Match for Qualities with Unknown Resolution
|
||||||
var matchingQualitiesUnknownResolution = Quality.All.Where(q => q.Source == source && (q.Resolution == 0) && q.Modifier == modifer && q != Quality.Unknown);
|
var matchingQualitiesUnknownResolution = Quality.All.Where(q => q.Source == source && (q.Resolution == 0) && q.Modifier == modifier && q != Quality.Unknown).ToList();
|
||||||
|
|
||||||
if (matchingQualitiesUnknownResolution.Any())
|
if (matchingQualitiesUnknownResolution.Any())
|
||||||
{
|
{
|
||||||
if (matchingQualitiesUnknownResolution.Count() == 1)
|
if (matchingQualitiesUnknownResolution.Count == 1)
|
||||||
{
|
{
|
||||||
return matchingQualitiesUnknownResolution.First();
|
return matchingQualitiesUnknownResolution.First();
|
||||||
}
|
}
|
||||||
|
|
@ -32,14 +32,14 @@ public static Quality FindBySourceAndResolution(QualitySource source, int resolu
|
||||||
{
|
{
|
||||||
if (quality.Source >= source)
|
if (quality.Source >= source)
|
||||||
{
|
{
|
||||||
Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifer, quality);
|
Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifier, quality);
|
||||||
return quality;
|
return quality;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for Modifier match
|
// Check for Modifier match
|
||||||
var matchingModifier = Quality.All.Where(q => q.Modifier == modifer);
|
var matchingModifier = Quality.All.Where(q => q.Modifier == modifier);
|
||||||
|
|
||||||
var matchingResolution = matchingModifier.Where(q => q.Resolution == resolution)
|
var matchingResolution = matchingModifier.Where(q => q.Resolution == resolution)
|
||||||
.OrderBy(q => q.Source)
|
.OrderBy(q => q.Source)
|
||||||
|
|
@ -56,7 +56,7 @@ public static Quality FindBySourceAndResolution(QualitySource source, int resolu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifer, nearestQuality);
|
Logger.Warn("Unable to find exact quality for {0}, {1}, and {2}. Using {3} as fallback", source, resolution, modifier, nearestQuality);
|
||||||
|
|
||||||
return nearestQuality;
|
return nearestQuality;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue