From aa304eac1266c390941091f3cef357daf81469d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Gubler?= Date: Sun, 23 Oct 2016 21:50:12 +0200 Subject: [PATCH] LibraryManager removed --- LibraryManager/LibraryManager.sln | 22 ----- .../LibraryManager/LibraryManager.csproj | 86 ------------------- .../LibraryManager/LibraryManagerBase.cs | 60 ------------- LibraryManager/LibraryManager/Plugin.cs | 46 ---------- .../LibraryManager/PluginConfiguration.cs | 17 ---- .../LibraryManager/Properties/AssemblyInfo.cs | 36 -------- LibraryManager/LibraryManager/packages.config | 8 -- 7 files changed, 275 deletions(-) delete mode 100644 LibraryManager/LibraryManager.sln delete mode 100644 LibraryManager/LibraryManager/LibraryManager.csproj delete mode 100644 LibraryManager/LibraryManager/LibraryManagerBase.cs delete mode 100644 LibraryManager/LibraryManager/Plugin.cs delete mode 100644 LibraryManager/LibraryManager/PluginConfiguration.cs delete mode 100644 LibraryManager/LibraryManager/Properties/AssemblyInfo.cs delete mode 100644 LibraryManager/LibraryManager/packages.config diff --git a/LibraryManager/LibraryManager.sln b/LibraryManager/LibraryManager.sln deleted file mode 100644 index f42dd25..0000000 --- a/LibraryManager/LibraryManager.sln +++ /dev/null @@ -1,22 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibraryManager", "LibraryManager\LibraryManager.csproj", "{145004AE-D152-4E89-A223-D877E852B394}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {145004AE-D152-4E89-A223-D877E852B394}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {145004AE-D152-4E89-A223-D877E852B394}.Debug|Any CPU.Build.0 = Debug|Any CPU - {145004AE-D152-4E89-A223-D877E852B394}.Release|Any CPU.ActiveCfg = Release|Any CPU - {145004AE-D152-4E89-A223-D877E852B394}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/LibraryManager/LibraryManager/LibraryManager.csproj b/LibraryManager/LibraryManager/LibraryManager.csproj deleted file mode 100644 index b5b7fc0..0000000 --- a/LibraryManager/LibraryManager/LibraryManager.csproj +++ /dev/null @@ -1,86 +0,0 @@ - - - - - Debug - AnyCPU - {145004AE-D152-4E89-A223-D877E852B394} - Library - Properties - LibraryManager - LibraryManager - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\CommonIO.1.0.0.9\lib\net45\CommonIO.dll - True - - - ..\packages\Interfaces.IO.1.0.0.5\lib\portable-net45+sl4+wp71+win8+wpa81\Interfaces.IO.dll - True - - - ..\packages\MediaBrowser.Common.3.0.664\lib\net45\MediaBrowser.Common.dll - True - - - ..\packages\MediaBrowser.Server.Core.3.0.664\lib\net45\MediaBrowser.Controller.dll - True - - - ..\packages\MediaBrowser.Common.3.0.664\lib\net45\MediaBrowser.Model.dll - True - - - ..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll - True - - - - - - - - - - - - - - - - - - - - - - xcopy "$(TargetPath)" "%25AppData%25\MediaBrowser-Server\Plugins\" /y - - - \ No newline at end of file diff --git a/LibraryManager/LibraryManager/LibraryManagerBase.cs b/LibraryManager/LibraryManager/LibraryManagerBase.cs deleted file mode 100644 index a470f7e..0000000 --- a/LibraryManager/LibraryManager/LibraryManagerBase.cs +++ /dev/null @@ -1,60 +0,0 @@ -using MediaBrowser.Controller.Library; -using System; -using MediaBrowser.Controller.Entities; -using MediaBrowser.Controller.Entities.Audio; -using MediaBrowser.Controller.Entities.TV; -using MediaBrowser.Controller.Providers; -using MediaBrowser.Controller.Resolvers; -using MediaBrowser.Controller.Sorting; -using MediaBrowser.Model.Configuration; -using MediaBrowser.Model.Dto; -using MediaBrowser.Model.Entities; -using MediaBrowser.Model.Querying; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -using MediaBrowser.Model.Logging; -using CommonIO; -using MediaBrowser.Controller.Plugins; - -namespace LibraryManager -{ - class LibraryManagerBase : IServerEntryPoint - { - private readonly ILogger _logger; - private readonly ILibraryManager _libraryManager; - - public LibraryManagerBase(ILogger logger, ILibraryManager libraryManager) - { - //System.Diagnostics.StackTrace t = new System.Diagnostics.StackTrace(); - logger.Info("[LibraryManager] LibraryManagerBase()"); - - _logger = logger; - _libraryManager = libraryManager; - } - - public void Dispose() - { - _logger.Info("[LibraryManager] Dispose()"); - } - - public void Run() - { - _logger.Info("[LibraryManager] Run()"); - - - IEnumerable result = _libraryManager.GetItemList(new InternalItemsQuery()); - long count = 0; - - foreach (BaseItem currBaseItem in result) - { - count++; - - - // _logger.Info("[LibraryManager] " + currBaseItem.MediaType); - } - _logger.Info("[LibraryManager] " + count); - } - } -} - diff --git a/LibraryManager/LibraryManager/Plugin.cs b/LibraryManager/LibraryManager/Plugin.cs deleted file mode 100644 index 9f995d5..0000000 --- a/LibraryManager/LibraryManager/Plugin.cs +++ /dev/null @@ -1,46 +0,0 @@ -using MediaBrowser.Common.Configuration; -using MediaBrowser.Common.Plugins; -using MediaBrowser.Model.Serialization; - -namespace LibraryManager -{ - /// - /// Class Plugin - /// - public class Plugin : BasePlugin - { - public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) - : base(applicationPaths, xmlSerializer) - { - Instance = this; - } - - /// - /// Gets the name of the plugin - /// - /// The name. - public override string Name - { - get { return "LibraryManager"; } - } - - /// - /// Gets the description. - /// - /// The description. - public override string Description - { - get - { - return "Provides a manager to edit the internal library."; - } - } - - /// - /// Gets the instance. - /// - /// The instance. - public static Plugin Instance { get; private set; } - } - -} diff --git a/LibraryManager/LibraryManager/PluginConfiguration.cs b/LibraryManager/LibraryManager/PluginConfiguration.cs deleted file mode 100644 index 78800bc..0000000 --- a/LibraryManager/LibraryManager/PluginConfiguration.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using MediaBrowser.Model.Plugins; - -namespace LibraryManager -{ - /// - /// Class PluginConfiguration - /// - public class PluginConfiguration : BasePluginConfiguration - { - - - public PluginConfiguration() - { - } - } -} diff --git a/LibraryManager/LibraryManager/Properties/AssemblyInfo.cs b/LibraryManager/LibraryManager/Properties/AssemblyInfo.cs deleted file mode 100644 index 6f2ccc7..0000000 --- a/LibraryManager/LibraryManager/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über die folgenden -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("LibraryManager")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("LibraryManager")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar -// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("D377A9FE-8009-4A0F-AD89-CF8E98FC7E40")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern -// übernehmen, indem Sie "*" eingeben: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/LibraryManager/LibraryManager/packages.config b/LibraryManager/LibraryManager/packages.config deleted file mode 100644 index 1fd24b3..0000000 --- a/LibraryManager/LibraryManager/packages.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file