From 3eb4091808735858b01855d298226d239be464af Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 3 Nov 2016 02:37:52 -0400 Subject: [PATCH] move additional classes to new server lib --- .../Activity/ActivityManager.cs | 2 +- .../Dto/DtoService.cs | 2 +- .../Emby.Server.Implementations.csproj | 99 ++++++++++++++++++- .../FileOrganization/EpisodeFileOrganizer.cs | 27 ++--- .../FileOrganization/Extensions.cs | 2 +- .../FileOrganizationNotifier.cs | 2 +- .../FileOrganizationService.cs | 2 +- .../FileOrganization/NameUtils.cs | 21 +--- .../OrganizerScheduledTask.cs | 2 +- .../FileOrganization/TvFolderOrganizer.cs | 4 +- .../Library/CoreResolutionIgnoreRule.cs | 2 +- .../Library/LibraryManager.cs | 55 +++++------ .../Library/LocalTrailerPostScanTask.cs | 2 +- .../Library/MediaSourceManager.cs | 11 ++- .../Library/MusicManager.cs | 2 +- .../Library/PathExtensions.cs | 2 +- .../Library/ResolverHelper.cs | 4 +- .../Library/Resolvers/Audio/AudioResolver.cs | 8 +- .../Resolvers/Audio/MusicAlbumResolver.cs | 4 +- .../Resolvers/Audio/MusicArtistResolver.cs | 2 +- .../Library/Resolvers/BaseVideoResolver.cs | 8 +- .../Library/Resolvers/FolderResolver.cs | 2 +- .../Library/Resolvers/ItemResolver.cs | 2 +- .../Resolvers/Movies/BoxSetResolver.cs | 2 +- .../Library/Resolvers/Movies/MovieResolver.cs | 4 +- .../Library/Resolvers/PhotoAlbumResolver.cs | 2 +- .../Library/Resolvers/PhotoResolver.cs | 2 +- .../Library/Resolvers/PlaylistResolver.cs | 2 +- .../Resolvers/SpecialFolderResolver.cs | 2 +- .../Library/Resolvers/TV/EpisodeResolver.cs | 2 +- .../Library/Resolvers/TV/SeasonResolver.cs | 2 +- .../Library/Resolvers/TV/SeriesResolver.cs | 6 +- .../Library/Resolvers/VideoResolver.cs | 2 +- .../Library/SearchEngine.cs | 9 +- .../Library/UserViewManager.cs | 2 +- .../Library/Validators/ArtistsPostScanTask.cs | 2 +- .../Library/Validators/ArtistsValidator.cs | 2 +- .../Validators/GameGenresPostScanTask.cs | 2 +- .../Library/Validators/GameGenresValidator.cs | 2 +- .../Library/Validators/GenresPostScanTask.cs | 2 +- .../Library/Validators/GenresValidator.cs | 2 +- .../Validators/MusicGenresPostScanTask.cs | 2 +- .../Validators/MusicGenresValidator.cs | 2 +- .../Library/Validators/PeopleValidator.cs | 2 +- .../Library/Validators/StudiosPostScanTask.cs | 2 +- .../Library/Validators/StudiosValidator.cs | 2 +- .../Library/Validators/YearsPostScanTask.cs | 2 +- .../Logging/PatternsLogger.cs | 63 ++++++++++++ .../Persistence/CleanDatabaseScheduledTask.cs | 9 +- .../ScheduledTasks/RefreshMediaLibraryTask.cs | 4 +- .../Sorting/AirTimeComparer.cs | 2 +- .../Sorting/AiredEpisodeOrderComparer.cs | 2 +- .../Sorting/AlbumArtistComparer.cs | 2 +- .../Sorting/AlbumComparer.cs | 2 +- .../Sorting/AlphanumComparator.cs | 2 +- .../Sorting/ArtistComparer.cs | 2 +- .../Sorting/BudgetComparer.cs | 2 +- .../Sorting/CommunityRatingComparer.cs | 2 +- .../Sorting/CriticRatingComparer.cs | 2 +- .../Sorting/DateCreatedComparer.cs | 2 +- .../Sorting/DateLastMediaAddedComparer.cs | 2 +- .../Sorting/DatePlayedComparer.cs | 2 +- .../Sorting/GameSystemComparer.cs | 2 +- .../Sorting/IsFavoriteOrLikeComparer.cs | 2 +- .../Sorting/IsFolderComparer.cs | 2 +- .../Sorting/IsPlayedComparer.cs | 2 +- .../Sorting/IsUnplayedComparer.cs | 2 +- .../Sorting/MetascoreComparer.cs | 2 +- .../Sorting/NameComparer.cs | 2 +- .../Sorting/OfficialRatingComparer.cs | 2 +- .../Sorting/PlayCountComparer.cs | 2 +- .../Sorting/PlayersComparer.cs | 2 +- .../Sorting/PremiereDateComparer.cs | 2 +- .../Sorting/ProductionYearComparer.cs | 2 +- .../Sorting/RandomComparer.cs | 2 +- .../Sorting/RevenueComparer.cs | 2 +- .../Sorting/RuntimeComparer.cs | 2 +- .../Sorting/SeriesSortNameComparer.cs | 2 +- .../Sorting/SortNameComparer.cs | 2 +- .../Sorting/StartDateComparer.cs | 2 +- .../Sorting/StudioComparer.cs | 2 +- Emby.Server.Implementations/packages.config | 5 + .../IO/FileRefresher.cs | 22 +++-- .../IO/LibraryMonitor.cs | 9 +- .../LiveTv/EmbyTV/EmbyTV.cs | 39 ++++---- ...MediaBrowser.Server.Implementations.csproj | 79 --------------- .../ApplicationHost.cs | 11 ++- .../Migrations/DbMigration.cs | 1 + 88 files changed, 354 insertions(+), 278 deletions(-) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Activity/ActivityManager.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Dto/DtoService.cs (99%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/FileOrganization/EpisodeFileOrganizer.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/FileOrganization/Extensions.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/FileOrganization/FileOrganizationNotifier.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/FileOrganization/FileOrganizationService.cs (99%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/FileOrganization/NameUtils.cs (77%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/FileOrganization/OrganizerScheduledTask.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/FileOrganization/TvFolderOrganizer.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/CoreResolutionIgnoreRule.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/LibraryManager.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/LocalTrailerPostScanTask.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/MediaSourceManager.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/MusicManager.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/PathExtensions.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/ResolverHelper.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/Audio/AudioResolver.cs (84%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/Audio/MusicAlbumResolver.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/Audio/MusicArtistResolver.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/BaseVideoResolver.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/FolderResolver.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/ItemResolver.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/Movies/BoxSetResolver.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/Movies/MovieResolver.cs (99%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/PhotoAlbumResolver.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/PhotoResolver.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/PlaylistResolver.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/SpecialFolderResolver.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/TV/EpisodeResolver.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/TV/SeasonResolver.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/TV/SeriesResolver.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Resolvers/VideoResolver.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/SearchEngine.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/UserViewManager.cs (99%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/ArtistsPostScanTask.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/ArtistsValidator.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/GameGenresPostScanTask.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/GameGenresValidator.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/GenresPostScanTask.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/GenresValidator.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/MusicGenresPostScanTask.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/MusicGenresValidator.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/PeopleValidator.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/StudiosPostScanTask.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/StudiosValidator.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Library/Validators/YearsPostScanTask.cs (96%) create mode 100644 Emby.Server.Implementations/Logging/PatternsLogger.cs rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Persistence/CleanDatabaseScheduledTask.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/ScheduledTasks/RefreshMediaLibraryTask.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/AirTimeComparer.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/AiredEpisodeOrderComparer.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/AlbumArtistComparer.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/AlbumComparer.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/AlphanumComparator.cs (98%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/ArtistComparer.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/BudgetComparer.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/CommunityRatingComparer.cs (93%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/CriticRatingComparer.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/DateCreatedComparer.cs (93%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/DateLastMediaAddedComparer.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/DatePlayedComparer.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/GameSystemComparer.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/IsFavoriteOrLikeComparer.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/IsFolderComparer.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/IsPlayedComparer.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/IsUnplayedComparer.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/MetascoreComparer.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/NameComparer.cs (93%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/OfficialRatingComparer.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/PlayCountComparer.cs (97%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/PlayersComparer.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/PremiereDateComparer.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/ProductionYearComparer.cs (96%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/RandomComparer.cs (93%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/RevenueComparer.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/RuntimeComparer.cs (93%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/SeriesSortNameComparer.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/SortNameComparer.cs (94%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/StartDateComparer.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/Sorting/StudioComparer.cs (93%) create mode 100644 Emby.Server.Implementations/packages.config diff --git a/MediaBrowser.Server.Implementations/Activity/ActivityManager.cs b/Emby.Server.Implementations/Activity/ActivityManager.cs similarity index 97% rename from MediaBrowser.Server.Implementations/Activity/ActivityManager.cs rename to Emby.Server.Implementations/Activity/ActivityManager.cs index 2af9395c3..b6095f082 100644 --- a/MediaBrowser.Server.Implementations/Activity/ActivityManager.cs +++ b/Emby.Server.Implementations/Activity/ActivityManager.cs @@ -8,7 +8,7 @@ using System; using System.Linq; using System.Threading.Tasks; -namespace MediaBrowser.Server.Implementations.Activity +namespace Emby.Server.Implementations.Activity { public class ActivityManager : IActivityManager { diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs similarity index 99% rename from MediaBrowser.Server.Implementations/Dto/DtoService.cs rename to Emby.Server.Implementations/Dto/DtoService.cs index a06656b21..85549439b 100644 --- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs +++ b/Emby.Server.Implementations/Dto/DtoService.cs @@ -29,7 +29,7 @@ using MediaBrowser.Controller.IO; using MediaBrowser.Model.IO; using MediaBrowser.Model.Extensions; -namespace MediaBrowser.Server.Implementations.Dto +namespace Emby.Server.Implementations.Dto { public class DtoService : IDtoService { diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csproj index af093d53f..11b3393c8 100644 --- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj +++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj @@ -13,7 +13,7 @@ en-US 512 {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Profile75 + Profile7 v4.5 @@ -52,6 +52,7 @@ Properties\SharedVersion.cs + @@ -60,18 +61,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + ..\packages\MediaBrowser.Naming.1.0.0.57\lib\portable-net45+sl4+wp71+win8+wpa81\MediaBrowser.Naming.dll + True + + + ..\packages\Patterns.Logging.1.0.0.4\lib\portable-net45+dnxcore50+sl4+wp71+win8+wpa81\Patterns.Logging.dll + True + + + + + + + +