The Free Software Media System - Server Backend & API
Visual Studio Reformat: Emby.Server.Implementations Part S-S
Erwin de Haan0efc699e3d4c
diff --git a/Emby.Server.Implementations/ScheduledTasks/ChapterImagesTask.cs b/Emby.Server.Implementations/ScheduledTasks/ChapterImagesTask.csindex 904e93c56c..fdc8ed9c46 100644--- a/Emby.Server.Implementations/ScheduledTasks/ChapterImagesTask.cs+++ b/Emby.Server.Implementations/ScheduledTasks/ChapterImagesTask.cs@@ -1,22 +1,20 @@-using MediaBrowser.Common.Configuration;-using MediaBrowser.Controller.Entities;-using MediaBrowser.Controller.Library;-using MediaBrowser.Controller.MediaEncoding;-using MediaBrowser.Controller.Persistence;-using Microsoft.Extensions.Logging;-using System;+using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using MediaBrowser.Common.Configuration;using MediaBrowser.Controller.Dto;-using MediaBrowser.Controller.IO;-using MediaBrowser.Model.IO;+using MediaBrowser.Controller.Entities;+using MediaBrowser.Controller.Library;+using MediaBrowser.Controller.MediaEncoding;+using MediaBrowser.Controller.Persistence;+using MediaBrowser.Controller.Providers;using MediaBrowser.Model.Entities;+using MediaBrowser.Model.IO;using MediaBrowser.Model.Tasks;-using MediaBrowser.Model.Extensions;-using MediaBrowser.Controller.Providers;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks{diff --git a/Emby.Server.Implementations/ScheduledTasks/DailyTrigger.cs b/Emby.Server.Implementations/ScheduledTasks/DailyTrigger.csindex afcee02e5f..c2a69ba488 100644--- a/Emby.Server.Implementations/ScheduledTasks/DailyTrigger.cs+++ b/Emby.Server.Implementations/ScheduledTasks/DailyTrigger.cs@@ -1,9 +1,8 @@using System;using System.Globalization;using System.Threading;-using MediaBrowser.Model.Events;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks{diff --git a/Emby.Server.Implementations/ScheduledTasks/IntervalTrigger.cs b/Emby.Server.Implementations/ScheduledTasks/IntervalTrigger.csindex 5f6a0dfe66..edd3eb8c07 100644--- a/Emby.Server.Implementations/ScheduledTasks/IntervalTrigger.cs+++ b/Emby.Server.Implementations/ScheduledTasks/IntervalTrigger.cs@@ -1,9 +1,8 @@using System;using System.Linq;using System.Threading;-using MediaBrowser.Model.Events;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks{diff --git a/Emby.Server.Implementations/ScheduledTasks/PeopleValidationTask.cs b/Emby.Server.Implementations/ScheduledTasks/PeopleValidationTask.csindex 366ad889cc..68031170fd 100644--- a/Emby.Server.Implementations/ScheduledTasks/PeopleValidationTask.cs+++ b/Emby.Server.Implementations/ScheduledTasks/PeopleValidationTask.cs@@ -1,9 +1,9 @@-using MediaBrowser.Controller.Library;using System;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;using MediaBrowser.Controller;+using MediaBrowser.Controller.Library;using MediaBrowser.Model.Tasks;namespace Emby.Server.Implementations.ScheduledTasksdiff --git a/Emby.Server.Implementations/ScheduledTasks/RefreshMediaLibraryTask.cs b/Emby.Server.Implementations/ScheduledTasks/RefreshMediaLibraryTask.csindex bd49277ad9..1ba7c853c0 100644--- a/Emby.Server.Implementations/ScheduledTasks/RefreshMediaLibraryTask.cs+++ b/Emby.Server.Implementations/ScheduledTasks/RefreshMediaLibraryTask.cs@@ -1,10 +1,10 @@-using MediaBrowser.Controller.Configuration;-using MediaBrowser.Controller.Library;-using System;+using System;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;using Emby.Server.Implementations.Library;+using MediaBrowser.Controller.Configuration;+using MediaBrowser.Controller.Library;using MediaBrowser.Model.Tasks;namespace Emby.Server.Implementations.ScheduledTasksdiff --git a/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs b/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.csindex ec54ce71a5..dc60b9990f 100644--- a/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs+++ b/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs@@ -9,10 +9,10 @@ using MediaBrowser.Common.Extensions;using MediaBrowser.Common.Progress;using MediaBrowser.Model.Events;using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Serialization;using MediaBrowser.Model.System;using MediaBrowser.Model.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks{@@ -718,7 +718,7 @@ namespace Emby.Server.Implementations.ScheduledTasks{if (!info.TimeOfDayTicks.HasValue){- throw new ArgumentException("Info did not contain a TimeOfDayTicks.",nameof(info));+ throw new ArgumentException("Info did not contain a TimeOfDayTicks.", nameof(info));}return new DailyTriggerdiff --git a/Emby.Server.Implementations/ScheduledTasks/StartupTrigger.cs b/Emby.Server.Implementations/ScheduledTasks/StartupTrigger.csindex 35366a044c..bcddb2b2a5 100644--- a/Emby.Server.Implementations/ScheduledTasks/StartupTrigger.cs+++ b/Emby.Server.Implementations/ScheduledTasks/StartupTrigger.cs@@ -1,8 +1,7 @@using System;using System.Threading.Tasks;-using MediaBrowser.Model.Events;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks{diff --git a/Emby.Server.Implementations/ScheduledTasks/SystemEventTrigger.cs b/Emby.Server.Implementations/ScheduledTasks/SystemEventTrigger.csindex def142f88a..0d629786f3 100644--- a/Emby.Server.Implementations/ScheduledTasks/SystemEventTrigger.cs+++ b/Emby.Server.Implementations/ScheduledTasks/SystemEventTrigger.cs@@ -1,9 +1,8 @@using System;using System.Threading.Tasks;-using MediaBrowser.Model.Events;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.System;using MediaBrowser.Model.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks{diff --git a/Emby.Server.Implementations/ScheduledTasks/TaskManager.cs b/Emby.Server.Implementations/ScheduledTasks/TaskManager.csindex 361c31acb0..c81025edd1 100644--- a/Emby.Server.Implementations/ScheduledTasks/TaskManager.cs+++ b/Emby.Server.Implementations/ScheduledTasks/TaskManager.cs@@ -7,10 +7,10 @@ using System.Threading.Tasks;using MediaBrowser.Common.Configuration;using MediaBrowser.Model.Events;using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Serialization;using MediaBrowser.Model.System;using MediaBrowser.Model.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks{@@ -94,7 +94,7 @@ namespace Emby.Server.Implementations.ScheduledTaskstry{- lines = _fileSystem.ReadAllLines(path).ToList() ;+ lines = _fileSystem.ReadAllLines(path).ToList();}catch{diff --git a/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs b/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.csindex 0716f8d308..93d1f1a947 100644--- a/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs+++ b/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs@@ -6,8 +6,8 @@ using System.Threading;using System.Threading.Tasks;using MediaBrowser.Common.Configuration;using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks.Tasks{diff --git a/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs b/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.csindex fea18d9f0b..67ecdd1477 100644--- a/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs+++ b/Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs@@ -65,7 +65,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasksforeach (var file in filesToDelete){- double percent = index / (double) filesToDelete.Count;+ double percent = index / (double)filesToDelete.Count;progress.Report(100 * percent);diff --git a/Emby.Server.Implementations/ScheduledTasks/WeeklyTrigger.cs b/Emby.Server.Implementations/ScheduledTasks/WeeklyTrigger.csindex e694e08558..11e92b7712 100644--- a/Emby.Server.Implementations/ScheduledTasks/WeeklyTrigger.cs+++ b/Emby.Server.Implementations/ScheduledTasks/WeeklyTrigger.cs@@ -1,8 +1,7 @@using System;using System.Threading;-using MediaBrowser.Model.Events;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.ScheduledTasks{diff --git a/Emby.Server.Implementations/Security/AuthenticationRepository.cs b/Emby.Server.Implementations/Security/AuthenticationRepository.csindex 2a6406f256..e0f174f9d4 100644--- a/Emby.Server.Implementations/Security/AuthenticationRepository.cs+++ b/Emby.Server.Implementations/Security/AuthenticationRepository.cs@@ -3,16 +3,13 @@ using System.Collections.Generic;using System.Globalization;using System.IO;using System.Linq;-using System.Threading;using Emby.Server.Implementations.Data;-using MediaBrowser.Controller;+using MediaBrowser.Controller.Configuration;using MediaBrowser.Controller.Security;-using Microsoft.Extensions.Logging;+using MediaBrowser.Model.Devices;using MediaBrowser.Model.Querying;+using Microsoft.Extensions.Logging;using SQLitePCL.pretty;-using MediaBrowser.Model.Extensions;-using MediaBrowser.Controller.Configuration;-using MediaBrowser.Model.Devices;namespace Emby.Server.Implementations.Security{diff --git a/Emby.Server.Implementations/Security/EncryptionManager.cs b/Emby.Server.Implementations/Security/EncryptionManager.csindex b99e00a673..c608723461 100644--- a/Emby.Server.Implementations/Security/EncryptionManager.cs+++ b/Emby.Server.Implementations/Security/EncryptionManager.cs@@ -1,6 +1,6 @@-using MediaBrowser.Controller.Security;using System;using System.Text;+using MediaBrowser.Controller.Security;namespace Emby.Server.Implementations.Security{diff --git a/Emby.Server.Implementations/Security/PluginSecurityManager.cs b/Emby.Server.Implementations/Security/PluginSecurityManager.csindex dc606f2b98..ddff00628c 100644--- a/Emby.Server.Implementations/Security/PluginSecurityManager.cs+++ b/Emby.Server.Implementations/Security/PluginSecurityManager.cs@@ -1,8 +1,5 @@using System;-using System.Collections.Generic;using System.IO;-using System.Linq;-using System.Net;using System.Threading;using System.Threading.Tasks;using MediaBrowser.Common.Configuration;@@ -12,9 +9,9 @@ using MediaBrowser.Controller;using MediaBrowser.Model.Cryptography;using MediaBrowser.Model.Entities;using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Net;using MediaBrowser.Model.Serialization;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.Security{diff --git a/Emby.Server.Implementations/Serialization/JsonSerializer.cs b/Emby.Server.Implementations/Serialization/JsonSerializer.csindex d4b6b2f43b..26c648d729 100644--- a/Emby.Server.Implementations/Serialization/JsonSerializer.cs+++ b/Emby.Server.Implementations/Serialization/JsonSerializer.cs@@ -1,9 +1,9 @@using System;using System.IO;+using System.Threading.Tasks;using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Serialization;-using System.Threading.Tasks;+using Microsoft.Extensions.Logging;namespace Emby.Common.Implementations.Serialization{diff --git a/Emby.Server.Implementations/Serialization/XmlSerializer.cs b/Emby.Server.Implementations/Serialization/XmlSerializer.csindex dfc3249198..5bacc754d9 100644--- a/Emby.Server.Implementations/Serialization/XmlSerializer.cs+++ b/Emby.Server.Implementations/Serialization/XmlSerializer.cs@@ -4,8 +4,8 @@ using System.IO;using System.Xml;using System.Xml.Serialization;using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Serialization;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.Serialization{diff --git a/Emby.Server.Implementations/Services/RequestHelper.cs b/Emby.Server.Implementations/Services/RequestHelper.csindex 711ba8bbce..3a4c4b3c54 100644--- a/Emby.Server.Implementations/Services/RequestHelper.cs+++ b/Emby.Server.Implementations/Services/RequestHelper.cs@@ -1,7 +1,7 @@using System;using System.IO;-using Emby.Server.Implementations.HttpServer;using System.Threading.Tasks;+using Emby.Server.Implementations.HttpServer;namespace Emby.Server.Implementations.Services{diff --git a/Emby.Server.Implementations/Services/ServiceController.cs b/Emby.Server.Implementations/Services/ServiceController.csindex 46af831288..f82c648238 100644--- a/Emby.Server.Implementations/Services/ServiceController.cs+++ b/Emby.Server.Implementations/Services/ServiceController.cs@@ -3,7 +3,6 @@ using System.Collections.Generic;using System.Reflection;using System.Threading.Tasks;using Emby.Server.Implementations.HttpServer;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Services;namespace Emby.Server.Implementations.Servicesdiff --git a/Emby.Server.Implementations/Services/ServiceExec.cs b/Emby.Server.Implementations/Services/ServiceExec.csindex 9516c1e389..2791ee2ac4 100644--- a/Emby.Server.Implementations/Services/ServiceExec.cs+++ b/Emby.Server.Implementations/Services/ServiceExec.cs@@ -5,7 +5,6 @@ using System.Linq.Expressions;using System.Reflection;using System.Threading.Tasks;using MediaBrowser.Model.Services;-using MediaBrowser.Model.Extensions;namespace Emby.Server.Implementations.Services{diff --git a/Emby.Server.Implementations/Services/ServiceHandler.cs b/Emby.Server.Implementations/Services/ServiceHandler.csindex 5590c51b62..c1c42e3ec9 100644--- a/Emby.Server.Implementations/Services/ServiceHandler.cs+++ b/Emby.Server.Implementations/Services/ServiceHandler.cs@@ -4,8 +4,8 @@ using System.Reflection;using System.Threading;using System.Threading.Tasks;using Emby.Server.Implementations.HttpServer;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Services;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.Services{diff --git a/Emby.Server.Implementations/Services/ServicePath.cs b/Emby.Server.Implementations/Services/ServicePath.csindex 0222b3782c..8ad31c160d 100644--- a/Emby.Server.Implementations/Services/ServicePath.cs+++ b/Emby.Server.Implementations/Services/ServicePath.cs@@ -4,8 +4,6 @@ using System.IO;using System.Linq;using System.Reflection;using System.Text;-using Microsoft.Extensions.Logging;-using MediaBrowser.Model.Extensions;namespace Emby.Server.Implementations.Services{diff --git a/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs b/Emby.Server.Implementations/Services/StringMapTypeDeserializer.csindex 2233bf918b..d13935fbab 100644--- a/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs+++ b/Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs@@ -11,14 +11,14 @@ namespace Emby.Server.Implementations.Services{internal class PropertySerializerEntry{- public PropertySerializerEntry(Action<object,object> propertySetFn, Func<string, object> propertyParseStringFn)+ public PropertySerializerEntry(Action<object, object> propertySetFn, Func<string, object> propertyParseStringFn){PropertySetFn = propertySetFn;PropertyParseStringFn = propertyParseStringFn;}public Action<object, object> PropertySetFn;- public Func<string,object> PropertyParseStringFn;+ public Func<string, object> PropertyParseStringFn;public Type PropertyType;}diff --git a/Emby.Server.Implementations/Session/HttpSessionController.cs b/Emby.Server.Implementations/Session/HttpSessionController.csindex c61e2aff48..56befdecab 100644--- a/Emby.Server.Implementations/Session/HttpSessionController.cs+++ b/Emby.Server.Implementations/Session/HttpSessionController.cs@@ -1,16 +1,14 @@-using MediaBrowser.Common.Net;-using MediaBrowser.Controller.Session;-using MediaBrowser.Model.Entities;-using MediaBrowser.Model.Serialization;-using MediaBrowser.Model.Session;-using MediaBrowser.Model.System;-using System;+using System;using System.Collections.Generic;using System.Globalization;using System.Linq;using System.Net;using System.Threading;using System.Threading.Tasks;+using MediaBrowser.Common.Net;+using MediaBrowser.Controller.Session;+using MediaBrowser.Model.Serialization;+using MediaBrowser.Model.Session;namespace Emby.Server.Implementations.Session{@@ -107,7 +105,7 @@ namespace Emby.Server.Implementations.Sessionreturn SendMessage(command.Command.ToString(), messageId, args, cancellationToken);}- private string[] _supportedMessages = new string[] { };+ private string[] _supportedMessages = new string[] { };public Task SendMessage<T>(string name, string messageId, T data, ISessionController[] allControllers, CancellationToken cancellationToken){if (!IsSessionActive)diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.csindex 4e444ac013..d991302280 100644--- a/Emby.Server.Implementations/Session/SessionManager.cs+++ b/Emby.Server.Implementations/Session/SessionManager.cs@@ -1,13 +1,22 @@+using System;+using System.Collections.Concurrent;+using System.Collections.Generic;+using System.Globalization;+using System.Linq;+using System.Threading;+using System.Threading.Tasks;using MediaBrowser.Common.Events;using MediaBrowser.Common.Extensions;using MediaBrowser.Common.Net;using MediaBrowser.Controller;+using MediaBrowser.Controller.Authentication;using MediaBrowser.Controller.Devices;using MediaBrowser.Controller.Drawing;using MediaBrowser.Controller.Dto;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Entities.TV;using MediaBrowser.Controller.Library;+using MediaBrowser.Controller.Net;using MediaBrowser.Controller.Security;using MediaBrowser.Controller.Session;using MediaBrowser.Model.Devices;@@ -15,21 +24,11 @@ using MediaBrowser.Model.Dto;using MediaBrowser.Model.Entities;using MediaBrowser.Model.Events;using MediaBrowser.Model.Library;-using Microsoft.Extensions.Logging;+using MediaBrowser.Model.Querying;using MediaBrowser.Model.Serialization;using MediaBrowser.Model.Session;-using System;-using System.Collections.Concurrent;-using System.Collections.Generic;-using System.Globalization;-using System.Linq;-using System.Threading;-using System.Threading.Tasks;-using MediaBrowser.Controller.Net;-using MediaBrowser.Model.Querying;using MediaBrowser.Model.Threading;-using MediaBrowser.Model.Extensions;-using MediaBrowser.Controller.Authentication;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.Session{@@ -798,7 +797,7 @@ namespace Emby.Server.Implementations.Sessionif (info.PositionTicks.HasValue && info.PositionTicks.Value < 0){- throw new ArgumentOutOfRangeException(nameof(info),"The PlaybackStopInfo's PositionTicks was negative.");+ throw new ArgumentOutOfRangeException(nameof(info), "The PlaybackStopInfo's PositionTicks was negative.");}var session = GetSession(info.SessionId);diff --git a/Emby.Server.Implementations/Session/SessionWebSocketListener.cs b/Emby.Server.Implementations/Session/SessionWebSocketListener.csindex 116e455cfa..24903f5e8c 100644--- a/Emby.Server.Implementations/Session/SessionWebSocketListener.cs+++ b/Emby.Server.Implementations/Session/SessionWebSocketListener.cs@@ -1,15 +1,11 @@+using System;+using System.Threading.Tasks;using MediaBrowser.Controller.Net;using MediaBrowser.Controller.Session;using MediaBrowser.Model.Events;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Serialization;-using MediaBrowser.Model.Session;-using System;-using System.Collections.Specialized;-using System.Globalization;-using System.Linq;-using System.Threading.Tasks;using MediaBrowser.Model.Services;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.Session{diff --git a/Emby.Server.Implementations/Session/WebSocketController.cs b/Emby.Server.Implementations/Session/WebSocketController.csindex ed34f8721c..3bfe576582 100644--- a/Emby.Server.Implementations/Session/WebSocketController.cs+++ b/Emby.Server.Implementations/Session/WebSocketController.cs@@ -1,16 +1,13 @@-using MediaBrowser.Controller.Net;-using MediaBrowser.Controller.Session;-using MediaBrowser.Model.Entities;-using Microsoft.Extensions.Logging;-using MediaBrowser.Model.Net;-using MediaBrowser.Model.Session;-using MediaBrowser.Model.System;-using System;+using System;using System.Collections.Generic;using System.Linq;+using System.Net.WebSockets;using System.Threading;using System.Threading.Tasks;-using System.Net.WebSockets;+using MediaBrowser.Controller.Net;+using MediaBrowser.Controller.Session;+using MediaBrowser.Model.Net;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.Session{diff --git a/Emby.Server.Implementations/Sorting/AiredEpisodeOrderComparer.cs b/Emby.Server.Implementations/Sorting/AiredEpisodeOrderComparer.csindex 1b2974c27c..271188314c 100644--- a/Emby.Server.Implementations/Sorting/AiredEpisodeOrderComparer.cs+++ b/Emby.Server.Implementations/Sorting/AiredEpisodeOrderComparer.cs@@ -1,8 +1,8 @@+using System;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Entities.TV;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/AlbumArtistComparer.cs b/Emby.Server.Implementations/Sorting/AlbumArtistComparer.csindex df64d816f8..535f123f90 100644--- a/Emby.Server.Implementations/Sorting/AlbumArtistComparer.cs+++ b/Emby.Server.Implementations/Sorting/AlbumArtistComparer.cs@@ -1,9 +1,9 @@+using System;using System.Linq;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Entities.Audio;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/AlbumComparer.cs b/Emby.Server.Implementations/Sorting/AlbumComparer.csindex dda1c54784..b64c608618 100644--- a/Emby.Server.Implementations/Sorting/AlbumComparer.cs+++ b/Emby.Server.Implementations/Sorting/AlbumComparer.cs@@ -1,8 +1,8 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Entities.Audio;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/ArtistComparer.cs b/Emby.Server.Implementations/Sorting/ArtistComparer.csindex b0f0549e33..af0b332ccb 100644--- a/Emby.Server.Implementations/Sorting/ArtistComparer.cs+++ b/Emby.Server.Implementations/Sorting/ArtistComparer.cs@@ -1,8 +1,8 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Entities.Audio;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs b/Emby.Server.Implementations/Sorting/CommunityRatingComparer.csindex 9947591717..60aa68425f 100644--- a/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs+++ b/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs@@ -1,7 +1,7 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/DateCreatedComparer.cs b/Emby.Server.Implementations/Sorting/DateCreatedComparer.csindex 1c51495179..8ff438aca6 100644--- a/Emby.Server.Implementations/Sorting/DateCreatedComparer.cs+++ b/Emby.Server.Implementations/Sorting/DateCreatedComparer.cs@@ -1,7 +1,7 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.cs b/Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.csindex ffe7fbaec1..623675157d 100644--- a/Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.cs+++ b/Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.cs@@ -1,8 +1,8 @@+using System;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/DatePlayedComparer.cs b/Emby.Server.Implementations/Sorting/DatePlayedComparer.csindex c11c1986cb..dd961c23ec 100644--- a/Emby.Server.Implementations/Sorting/DatePlayedComparer.cs+++ b/Emby.Server.Implementations/Sorting/DatePlayedComparer.cs@@ -1,8 +1,8 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/GameSystemComparer.cs b/Emby.Server.Implementations/Sorting/GameSystemComparer.csindex 0b534b3cb1..fcd66f97fc 100644--- a/Emby.Server.Implementations/Sorting/GameSystemComparer.cs+++ b/Emby.Server.Implementations/Sorting/GameSystemComparer.cs@@ -1,7 +1,7 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/NameComparer.cs b/Emby.Server.Implementations/Sorting/NameComparer.csindex cfd810a6b5..7ba25c6c2b 100644--- a/Emby.Server.Implementations/Sorting/NameComparer.cs+++ b/Emby.Server.Implementations/Sorting/NameComparer.cs@@ -1,7 +1,7 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/OfficialRatingComparer.cs b/Emby.Server.Implementations/Sorting/OfficialRatingComparer.csindex cd48e3048a..359ab607e0 100644--- a/Emby.Server.Implementations/Sorting/OfficialRatingComparer.cs+++ b/Emby.Server.Implementations/Sorting/OfficialRatingComparer.cs@@ -1,8 +1,8 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Globalization;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/PremiereDateComparer.cs b/Emby.Server.Implementations/Sorting/PremiereDateComparer.csindex 26c6badaae..e36d65056c 100644--- a/Emby.Server.Implementations/Sorting/PremiereDateComparer.cs+++ b/Emby.Server.Implementations/Sorting/PremiereDateComparer.cs@@ -1,7 +1,7 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/RandomComparer.cs b/Emby.Server.Implementations/Sorting/RandomComparer.csindex c69ebe41a7..de8e1d88f2 100644--- a/Emby.Server.Implementations/Sorting/RandomComparer.cs+++ b/Emby.Server.Implementations/Sorting/RandomComparer.cs@@ -1,7 +1,7 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/RuntimeComparer.cs b/Emby.Server.Implementations/Sorting/RuntimeComparer.csindex 77851d702b..08a25269a6 100644--- a/Emby.Server.Implementations/Sorting/RuntimeComparer.cs+++ b/Emby.Server.Implementations/Sorting/RuntimeComparer.cs@@ -1,7 +1,7 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/SeriesSortNameComparer.cs b/Emby.Server.Implementations/Sorting/SeriesSortNameComparer.csindex 1bbe30b955..942e847041 100644--- a/Emby.Server.Implementations/Sorting/SeriesSortNameComparer.cs+++ b/Emby.Server.Implementations/Sorting/SeriesSortNameComparer.cs@@ -1,7 +1,7 @@+using System;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/SortNameComparer.cs b/Emby.Server.Implementations/Sorting/SortNameComparer.csindex 6c42ed9887..2b70d8b02b 100644--- a/Emby.Server.Implementations/Sorting/SortNameComparer.cs+++ b/Emby.Server.Implementations/Sorting/SortNameComparer.cs@@ -1,7 +1,7 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/StartDateComparer.cs b/Emby.Server.Implementations/Sorting/StartDateComparer.csindex 7ae8037d99..9954daf19a 100644--- a/Emby.Server.Implementations/Sorting/StartDateComparer.cs+++ b/Emby.Server.Implementations/Sorting/StartDateComparer.cs@@ -1,8 +1,8 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.LiveTv;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;namespace Emby.Server.Implementations.Sorting{diff --git a/Emby.Server.Implementations/Sorting/StudioComparer.cs b/Emby.Server.Implementations/Sorting/StudioComparer.csindex 605d65154e..9b6c15b2b8 100644--- a/Emby.Server.Implementations/Sorting/StudioComparer.cs+++ b/Emby.Server.Implementations/Sorting/StudioComparer.cs@@ -1,8 +1,8 @@-using MediaBrowser.Controller.Entities;+using System;+using System.Linq;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Sorting;using MediaBrowser.Model.Querying;-using System;-using System.Linq;namespace Emby.Server.Implementations.Sorting{