diff --git a/PlexRequests.Api/ApiRequest.cs b/Ombi.Api/ApiRequest.cs similarity index 100% rename from PlexRequests.Api/ApiRequest.cs rename to Ombi.Api/ApiRequest.cs diff --git a/PlexRequests.Api/CouchPotatoApi.cs b/Ombi.Api/CouchPotatoApi.cs similarity index 100% rename from PlexRequests.Api/CouchPotatoApi.cs rename to Ombi.Api/CouchPotatoApi.cs diff --git a/PlexRequests.Api/HeadphonesApi.cs b/Ombi.Api/HeadphonesApi.cs similarity index 100% rename from PlexRequests.Api/HeadphonesApi.cs rename to Ombi.Api/HeadphonesApi.cs diff --git a/PlexRequests.Api/MovieBase.cs b/Ombi.Api/MovieBase.cs similarity index 100% rename from PlexRequests.Api/MovieBase.cs rename to Ombi.Api/MovieBase.cs diff --git a/PlexRequests.Api/MusicBrainzApi.cs b/Ombi.Api/MusicBrainzApi.cs similarity index 100% rename from PlexRequests.Api/MusicBrainzApi.cs rename to Ombi.Api/MusicBrainzApi.cs diff --git a/PlexRequests.Api/Ombi.Api.csproj b/Ombi.Api/Ombi.Api.csproj similarity index 100% rename from PlexRequests.Api/Ombi.Api.csproj rename to Ombi.Api/Ombi.Api.csproj diff --git a/PlexRequests.Api/PlexApi.cs b/Ombi.Api/PlexApi.cs similarity index 100% rename from PlexRequests.Api/PlexApi.cs rename to Ombi.Api/PlexApi.cs diff --git a/PlexRequests.Api/Properties/AssemblyInfo.cs b/Ombi.Api/Properties/AssemblyInfo.cs similarity index 100% rename from PlexRequests.Api/Properties/AssemblyInfo.cs rename to Ombi.Api/Properties/AssemblyInfo.cs diff --git a/PlexRequests.Api/PushbulletApi.cs b/Ombi.Api/PushbulletApi.cs similarity index 100% rename from PlexRequests.Api/PushbulletApi.cs rename to Ombi.Api/PushbulletApi.cs diff --git a/PlexRequests.Api/PushoverApi.cs b/Ombi.Api/PushoverApi.cs similarity index 100% rename from PlexRequests.Api/PushoverApi.cs rename to Ombi.Api/PushoverApi.cs diff --git a/PlexRequests.Api/RetryHandler.cs b/Ombi.Api/RetryHandler.cs similarity index 100% rename from PlexRequests.Api/RetryHandler.cs rename to Ombi.Api/RetryHandler.cs diff --git a/PlexRequests.Api/SickrageApi.cs b/Ombi.Api/SickrageApi.cs similarity index 100% rename from PlexRequests.Api/SickrageApi.cs rename to Ombi.Api/SickrageApi.cs diff --git a/PlexRequests.Api/SlackApi.cs b/Ombi.Api/SlackApi.cs similarity index 100% rename from PlexRequests.Api/SlackApi.cs rename to Ombi.Api/SlackApi.cs diff --git a/PlexRequests.Api/SonarrApi.cs b/Ombi.Api/SonarrApi.cs similarity index 100% rename from PlexRequests.Api/SonarrApi.cs rename to Ombi.Api/SonarrApi.cs diff --git a/PlexRequests.Api/TheMovieDbApi.cs b/Ombi.Api/TheMovieDbApi.cs similarity index 100% rename from PlexRequests.Api/TheMovieDbApi.cs rename to Ombi.Api/TheMovieDbApi.cs diff --git a/PlexRequests.Api/TheTvDbApi.cs b/Ombi.Api/TheTvDbApi.cs similarity index 100% rename from PlexRequests.Api/TheTvDbApi.cs rename to Ombi.Api/TheTvDbApi.cs diff --git a/PlexRequests.Api/TvBase.cs b/Ombi.Api/TvBase.cs similarity index 100% rename from PlexRequests.Api/TvBase.cs rename to Ombi.Api/TvBase.cs diff --git a/PlexRequests.Api/TvMazeApi.cs b/Ombi.Api/TvMazeApi.cs similarity index 100% rename from PlexRequests.Api/TvMazeApi.cs rename to Ombi.Api/TvMazeApi.cs diff --git a/PlexRequests.Api/TvMazeBase.cs b/Ombi.Api/TvMazeBase.cs similarity index 100% rename from PlexRequests.Api/TvMazeBase.cs rename to Ombi.Api/TvMazeBase.cs diff --git a/PlexRequests.Api/app.config b/Ombi.Api/app.config similarity index 100% rename from PlexRequests.Api/app.config rename to Ombi.Api/app.config diff --git a/PlexRequests.Api/packages.config b/Ombi.Api/packages.config similarity index 100% rename from PlexRequests.Api/packages.config rename to Ombi.Api/packages.config diff --git a/Ombi.sln b/Ombi.sln index 6eb562fc5..105e5e621 100644 --- a/Ombi.sln +++ b/Ombi.sln @@ -5,7 +5,7 @@ VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ombi.UI", "PlexRequests.UI\Ombi.UI.csproj", "{68F5F5F3-B8BB-4911-875F-6F00AAE04EA6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ombi.Api", "PlexRequests.Api\Ombi.Api.csproj", "{8CB8D235-2674-442D-9C6A-35FCAEEB160D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ombi.Api", "Ombi.Api\Ombi.Api.csproj", "{8CB8D235-2674-442D-9C6A-35FCAEEB160D}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ombi.Api.Interfaces", "PlexRequests.Api.Interfaces\Ombi.Api.Interfaces.csproj", "{95834072-A675-415D-AA8F-877C91623810}" EndProject diff --git a/PlexRequestes.Automation.Helpers/DatabaseConfiguration.cs b/PlexRequestes.Automation.Helpers/DatabaseConfiguration.cs deleted file mode 100644 index c72b27e43..000000000 --- a/PlexRequestes.Automation.Helpers/DatabaseConfiguration.cs +++ /dev/null @@ -1,81 +0,0 @@ -#region Copyright -// /************************************************************************ -// Copyright (c) 2016 Jamie Rees -// File: DatabaseConfiguration.cs -// Created By: Jamie Rees -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// ************************************************************************/ -#endregion -using Mono.Data.Sqlite; - -using PlexRequests.Core; -using PlexRequests.Core.SettingModels; -using PlexRequests.Helpers; -using PlexRequests.Store; -using PlexRequests.Store.Repository; - -namespace PlexRequestes.Automation.Helpers -{ - public static class DatabaseConfiguration - { - private static SettingsJsonRepository _jsonRepository = new SettingsJsonRepository(new DbConfiguration(new SqliteFactory()), new MemoryCacheProvider()); - - public static void ResetDatabase() - { - var defaultSettings = new PlexRequestSettings - { - RequireTvShowApproval = true, - RequireMovieApproval = true, - SearchForMovies = true, - SearchForTvShows = true, - BaseUrl = string.Empty, - CollectAnalyticData = true, - }; - UpdateSettings(defaultSettings); - - LandingPageSettings lp = null; - PlexSettings plexSettings = null; - SonarrSettings sonarr = null; - CouchPotatoSettings cp = null; - SickRageSettings sr = null; - UpdateSettings(lp); - UpdateSettings(plexSettings); - UpdateSettings(sonarr); - UpdateSettings(cp); - UpdateSettings(sr); - - - } - - - public static void UpdateSettings(T settings) where T : Settings, new() - { - var service = new SettingsServiceV2(_jsonRepository); - if (settings == null) - { - var existing = service.GetSettings(); - service.Delete(existing); - return; - } - service.SaveSettings(settings); - } - } -} \ No newline at end of file diff --git a/PlexRequestes.Automation.Helpers/DriverHelpers.cs b/PlexRequestes.Automation.Helpers/DriverHelpers.cs deleted file mode 100644 index ca2564473..000000000 --- a/PlexRequestes.Automation.Helpers/DriverHelpers.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System; - -using OpenQA.Selenium; - -namespace PlexRequestes.Automation.Helpers -{ - public static class DriverHelpers - { - public static bool Exists(this IWebElement element, bool preformAStringEmptyCheck) - { - try - { - var text = element.Text; - if (preformAStringEmptyCheck) - { - if (string.IsNullOrEmpty(text)) - { - return false; - } - } - } - catch (NoSuchElementException) - { - return false; - } - - return true; - } - - public static bool Exists(this IWebDriver driver, By locator, bool preformAStringEmptyCheck) - { - try - { - var element = driver.FindElement(locator); - var text = element.Text; - if (preformAStringEmptyCheck) - { - if (string.IsNullOrEmpty(text)) - { - return false; - } - } - } - catch (NoSuchElementException) - { - return false; - } - - return true; - } - - /// - /// The exists. - /// - /// The element. - /// - /// The . - /// - public static bool Exists(this IWebElement element) - { - try - { - var text = element.Text; - if (string.IsNullOrEmpty(text)) - { - return false; - } - } - catch (Exception) - { - return false; - } - - return true; - } - } -} diff --git a/PlexRequestes.Automation.Helpers/PlexRequestes.Automation.Helpers.csproj b/PlexRequestes.Automation.Helpers/PlexRequestes.Automation.Helpers.csproj deleted file mode 100644 index 388b6240e..000000000 --- a/PlexRequestes.Automation.Helpers/PlexRequestes.Automation.Helpers.csproj +++ /dev/null @@ -1,89 +0,0 @@ - - - - - Debug - AnyCPU - {DC8BACEF-C284-4A8F-A9AA-7F49EFABA288} - Library - Properties - PlexRequestes.Automation.Helpers - PlexRequestes.Automation.Helpers - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\CommandLineParser.1.9.71\lib\net45\CommandLine.dll - True - - - ..\Assemblies\Mono.Data.Sqlite.dll - - - - - - - - - - - - ..\packages\Selenium.WebDriver.2.53.1\lib\net40\WebDriver.dll - True - - - ..\packages\Selenium.Support.2.53.1\lib\net40\WebDriver.Support.dll - True - - - - - - - - - - - - - - {dd7dc444-d3bf-4027-8ab9-efc71f5ec581} - PlexRequests.Core - - - {1252336D-42A3-482A-804C-836E60173DFA} - PlexRequests.Helpers - - - {92433867-2b7b-477b-a566-96c382427525} - PlexRequests.Store - - - - - \ No newline at end of file diff --git a/PlexRequestes.Automation.Helpers/Properties/AssemblyInfo.cs b/PlexRequestes.Automation.Helpers/Properties/AssemblyInfo.cs deleted file mode 100644 index 81cb11299..000000000 --- a/PlexRequestes.Automation.Helpers/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("PlexRequestes.Automation.Helpers")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("PlexRequestes.Automation.Helpers")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("dc8bacef-c284-4a8f-a9aa-7f49efaba288")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PlexRequestes.Automation.Helpers/app.config b/PlexRequestes.Automation.Helpers/app.config deleted file mode 100644 index 8460dd432..000000000 --- a/PlexRequestes.Automation.Helpers/app.config +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/PlexRequestes.Automation.Helpers/packages.config b/PlexRequestes.Automation.Helpers/packages.config deleted file mode 100644 index 34b40b473..000000000 --- a/PlexRequestes.Automation.Helpers/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file