Fix SA1012 and SA1013 warnings

This commit is contained in:
Jan-Pieter Baert 2020-10-12 19:22:33 +02:00
parent 2375c35c4a
commit 6f9beef732
No known key found for this signature in database
GPG Key ID: B19186932178234A
6 changed files with 14 additions and 14 deletions

View File

@ -5357,7 +5357,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
itemCountColumns = new Dictionary<string, string>() itemCountColumns = new Dictionary<string, string>()
{ {
{ "itemTypes", "(" + itemCountColumnQuery + ") as itemTypes"} { "itemTypes", "(" + itemCountColumnQuery + ") as itemTypes" }
}; };
} }

View File

@ -43,7 +43,7 @@ namespace Emby.Server.Implementations.LiveTv
return new[] return new[]
{ {
// Every so often // Every so often
new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks} new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks }
}; };
} }

View File

@ -71,7 +71,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
return new[] return new[]
{ {
// Every so often // Every so often
new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks} new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks }
}; };
} }

View File

@ -65,7 +65,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
{ {
return new[] return new[]
{ {
new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks} new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks }
}; };
} }

View File

@ -70,15 +70,15 @@ namespace MediaBrowser.Controller.MediaEncoding
var codecMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) var codecMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
{ {
{"qsv", hwEncoder + "_qsv"}, { "qsv", hwEncoder + "_qsv" },
{hwEncoder + "_qsv", hwEncoder + "_qsv"}, { hwEncoder + "_qsv", hwEncoder + "_qsv" },
{"nvenc", hwEncoder + "_nvenc"}, { "nvenc", hwEncoder + "_nvenc" },
{"amf", hwEncoder + "_amf"}, { "amf", hwEncoder + "_amf" },
{"omx", hwEncoder + "_omx"}, { "omx", hwEncoder + "_omx" },
{hwEncoder + "_v4l2m2m", hwEncoder + "_v4l2m2m"}, { hwEncoder + "_v4l2m2m", hwEncoder + "_v4l2m2m" },
{"mediacodec", hwEncoder + "_mediacodec"}, { "mediacodec", hwEncoder + "_mediacodec" },
{"vaapi", hwEncoder + "_vaapi"}, { "vaapi", hwEncoder + "_vaapi" },
{"videotoolbox", hwEncoder + "_videotoolbox"} { "videotoolbox", hwEncoder + "_videotoolbox" }
}; };
if (!string.IsNullOrEmpty(hwType) if (!string.IsNullOrEmpty(hwType)

View File

@ -214,7 +214,7 @@ namespace MediaBrowser.Providers.MediaInfo
return new[] return new[]
{ {
// Every so often // Every so often
new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks} new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks }
}; };
} }
} }