The Free Software Media System - Server Backend & API
move classes to portable server project
Luke Pulverenti41bef184d103
diff --git a/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs b/Emby.Server.Implementations/Collections/CollectionManager.cssimilarity index 98%rename from MediaBrowser.Server.Implementations/Collections/CollectionManager.csrename to Emby.Server.Implementations/Collections/CollectionManager.csindex f074fd812c..d0bd76c354 100644--- a/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs+++ b/Emby.Server.Implementations/Collections/CollectionManager.cs@@ -11,11 +11,9 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;-using MediaBrowser.Common.IO;-using MediaBrowser.Controller.IO;using MediaBrowser.Model.IO;-namespace MediaBrowser.Server.Implementations.Collections+namespace Emby.Server.Implementations.Collections{public class CollectionManager : ICollectionManager{diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csprojindex 85dfda0a33..af093d53f9 100644--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj@@ -59,8 +59,10 @@<Compile Include="Channels\ChannelManager.cs" /><Compile Include="Channels\ChannelPostScanTask.cs" /><Compile Include="Channels\RefreshChannelsScheduledTask.cs" />+ <Compile Include="Collections\CollectionManager.cs" /><Compile Include="Intros\DefaultIntroProvider.cs" /><Compile Include="News\NewsService.cs" />+ <Compile Include="Playlists\PlaylistManager.cs" /><Compile Include="Properties\AssemblyInfo.cs" /><Compile Include="ScheduledTasks\ChapterImagesTask.cs" /><Compile Include="ScheduledTasks\PeopleValidationTask.cs" />@@ -69,6 +71,7 @@<Compile Include="ScheduledTasks\SystemUpdateTask.cs" /><Compile Include="Updates\InstallationManager.cs" /></ItemGroup>+ <ItemGroup /><Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it.Other similar extension points exist, see Microsoft.Common.targets.diff --git a/MediaBrowser.Server.Implementations/Playlists/PlaylistManager.cs b/Emby.Server.Implementations/Playlists/PlaylistManager.cssimilarity index 95%rename from MediaBrowser.Server.Implementations/Playlists/PlaylistManager.csrename to Emby.Server.Implementations/Playlists/PlaylistManager.csindex 13202d94c2..9583141e0d 100644--- a/MediaBrowser.Server.Implementations/Playlists/PlaylistManager.cs+++ b/Emby.Server.Implementations/Playlists/PlaylistManager.cs@@ -16,7 +16,7 @@ using MediaBrowser.Common.IO;using MediaBrowser.Controller.IO;using MediaBrowser.Model.IO;-namespace MediaBrowser.Server.Implementations.Playlists+namespace Emby.Server.Implementations.Playlists{public class PlaylistManager : IPlaylistManager{@@ -267,9 +267,10 @@ namespace MediaBrowser.Server.Implementations.Playlistspublic Folder GetPlaylistsFolder(string userId){- return _libraryManager.RootFolder.Children.OfType<PlaylistsFolder>()- .FirstOrDefault() ?? _libraryManager.GetUserRootFolder().Children.OfType<PlaylistsFolder>()- .FirstOrDefault();+ var typeName = "PlaylistsFolder";++ return _libraryManager.RootFolder.Children.OfType<Folder>().FirstOrDefault(i => string.Equals(i.GetType().Name, typeName, StringComparison.Ordinal)) ??+ _libraryManager.GetUserRootFolder().Children.OfType<Folder>().FirstOrDefault(i => string.Equals(i.GetType().Name, typeName, StringComparison.Ordinal));}}}diff --git a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csprojindex 6cc3b8a47c..037c6bd0cf 100644--- a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj+++ b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj@@ -111,11 +111,11 @@<Compile Include="Activity\ActivityManager.cs" /><Compile Include="Activity\ActivityRepository.cs" /><Compile Include="Archiving\ZipClient.cs" />- <Compile Include="Collections\CollectionManager.cs" /><Compile Include="Collections\CollectionsDynamicFolder.cs" /><Compile Include="Collections\CollectionImageProvider.cs" /><Compile Include="Configuration\ServerConfigurationManager.cs" /><Compile Include="Connect\ConnectData.cs" />+ <Compile Include="Connect\ConnectEntryPoint.cs" /><Compile Include="Connect\ConnectManager.cs" /><Compile Include="Connect\Responses.cs" /><Compile Include="Connect\Validator.cs" />@@ -133,7 +133,6 @@<Compile Include="EntryPoints\RecordingNotifier.cs" /><Compile Include="EntryPoints\RefreshUsersMetadata.cs" /><Compile Include="EntryPoints\UsageEntryPoint.cs" />- <Compile Include="Connect\ConnectEntryPoint.cs" /><Compile Include="EntryPoints\UsageReporter.cs" /><Compile Include="FileOrganization\EpisodeFileOrganizer.cs" /><Compile Include="FileOrganization\Extensions.cs" />@@ -300,7 +299,6 @@<Compile Include="Playlists\ManualPlaylistsFolder.cs" /><Compile Include="Photos\PhotoAlbumImageProvider.cs" /><Compile Include="Playlists\PlaylistImageProvider.cs" />- <Compile Include="Playlists\PlaylistManager.cs" /><Compile Include="Properties\AssemblyInfo.cs" /><Compile Include="Security\AuthenticationRepository.cs" /><Compile Include="Security\EncryptionManager.cs" />diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.csindex 9484bca7d1..c5a9fbc198 100644--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs@@ -108,6 +108,8 @@ using Emby.Dlna.Main;using Emby.Dlna.MediaReceiverRegistrar;using Emby.Dlna.Ssdp;using Emby.Server.Implementations.Channels;+using Emby.Server.Implementations.Collections;+using Emby.Server.Implementations.Playlists;using Emby.Server.Implementations.Updates;using MediaBrowser.Model.Activity;using MediaBrowser.Model.Dlna;