diff --git a/src/Ombi.Core.Tests/Ombi.Core.Tests.csproj b/src/Ombi.Core.Tests/Ombi.Core.Tests.csproj
index 23fc6db78..f4cc672c2 100644
--- a/src/Ombi.Core.Tests/Ombi.Core.Tests.csproj
+++ b/src/Ombi.Core.Tests/Ombi.Core.Tests.csproj
@@ -7,10 +7,10 @@
-
+
-
-
+
+
diff --git a/src/Ombi.Core/Engine/MusicRequestEngine.cs b/src/Ombi.Core/Engine/MusicRequestEngine.cs
index 8457de515..8094e79c4 100644
--- a/src/Ombi.Core/Engine/MusicRequestEngine.cs
+++ b/src/Ombi.Core/Engine/MusicRequestEngine.cs
@@ -69,6 +69,12 @@ namespace Ombi.Core.Engine
};
}
+ if(album?.artist == null)
+ {
+ // Lookup the artist
+ //album.artist = await _lidarrApi.ArtistLookup(album.artist, s.ApiKey, s.FullUri);
+ }
+
var userDetails = await GetUser();
var requestModel = new AlbumRequest
@@ -83,7 +89,7 @@ namespace Ombi.Core.Engine
Title = album.title,
Disk = album.images?.FirstOrDefault(x => x.coverType.Equals("disc"))?.url,
Cover = album.images?.FirstOrDefault(x => x.coverType.Equals("cover"))?.url,
- ForeignArtistId = album?.artist?.foreignArtistId ?? string.Empty,
+ ForeignArtistId = album?.artist?.foreignArtistId ?? string.Empty, // This needs to be populated to send to Lidarr for new requests
RequestedByAlias = model.RequestedByAlias
};
if (requestModel.Cover.IsNullOrEmpty())
diff --git a/src/Ombi.Core/Ombi.Core.csproj b/src/Ombi.Core/Ombi.Core.csproj
index 790aa8500..b9edfbaec 100644
--- a/src/Ombi.Core/Ombi.Core.csproj
+++ b/src/Ombi.Core/Ombi.Core.csproj
@@ -11,10 +11,9 @@
-
+
-
-
+
diff --git a/src/Ombi.Helpers.Tests/Ombi.Helpers.Tests.csproj b/src/Ombi.Helpers.Tests/Ombi.Helpers.Tests.csproj
index 0517af22d..635186dbf 100644
--- a/src/Ombi.Helpers.Tests/Ombi.Helpers.Tests.csproj
+++ b/src/Ombi.Helpers.Tests/Ombi.Helpers.Tests.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/src/Ombi.Notifications.Tests/Ombi.Notifications.Tests.csproj b/src/Ombi.Notifications.Tests/Ombi.Notifications.Tests.csproj
index 5436dff22..d5db2cf26 100644
--- a/src/Ombi.Notifications.Tests/Ombi.Notifications.Tests.csproj
+++ b/src/Ombi.Notifications.Tests/Ombi.Notifications.Tests.csproj
@@ -5,10 +5,10 @@
-
+
-
-
+
+
diff --git a/src/Ombi.Notifications/Ombi.Notifications.csproj b/src/Ombi.Notifications/Ombi.Notifications.csproj
index 3fa4b4830..dfc939776 100644
--- a/src/Ombi.Notifications/Ombi.Notifications.csproj
+++ b/src/Ombi.Notifications/Ombi.Notifications.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/src/Ombi.Schedule.Tests/Ombi.Schedule.Tests.csproj b/src/Ombi.Schedule.Tests/Ombi.Schedule.Tests.csproj
index 0c83dd755..8254957fa 100644
--- a/src/Ombi.Schedule.Tests/Ombi.Schedule.Tests.csproj
+++ b/src/Ombi.Schedule.Tests/Ombi.Schedule.Tests.csproj
@@ -7,10 +7,10 @@
-
+
-
-
+
+
diff --git a/src/Ombi.Schedule/Ombi.Schedule.csproj b/src/Ombi.Schedule/Ombi.Schedule.csproj
index 256a3df7a..827db0d9a 100644
--- a/src/Ombi.Schedule/Ombi.Schedule.csproj
+++ b/src/Ombi.Schedule/Ombi.Schedule.csproj
@@ -10,13 +10,13 @@
-
-
-
+
+
+
-
+
diff --git a/src/Ombi.Store/Ombi.Store.csproj b/src/Ombi.Store/Ombi.Store.csproj
index 8dfcc1c28..b1c73f411 100644
--- a/src/Ombi.Store/Ombi.Store.csproj
+++ b/src/Ombi.Store/Ombi.Store.csproj
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/src/Ombi.Tests/Ombi.Tests.csproj b/src/Ombi.Tests/Ombi.Tests.csproj
index fdfec1cb2..4eb65deeb 100644
--- a/src/Ombi.Tests/Ombi.Tests.csproj
+++ b/src/Ombi.Tests/Ombi.Tests.csproj
@@ -9,10 +9,10 @@
-
+
-
-
+
+
diff --git a/src/Ombi.Updater/Ombi.Updater.csproj b/src/Ombi.Updater/Ombi.Updater.csproj
index 6220a100b..0fdad5985 100644
--- a/src/Ombi.Updater/Ombi.Updater.csproj
+++ b/src/Ombi.Updater/Ombi.Updater.csproj
@@ -11,7 +11,7 @@
-
+
@@ -20,7 +20,7 @@
-
+
diff --git a/src/Ombi/Controllers/V1/SearchController.cs b/src/Ombi/Controllers/V1/SearchController.cs
index e10e31116..4bac34964 100644
--- a/src/Ombi/Controllers/V1/SearchController.cs
+++ b/src/Ombi/Controllers/V1/SearchController.cs
@@ -9,8 +9,6 @@ using Ombi.Core.Engine;
using Ombi.Core.Engine.Interfaces;
using Ombi.Core.Models.Search;
using Ombi.Models;
-using StackExchange.Profiling;
-using Microsoft.AspNetCore.Http;
using Ombi.Core.Engine.Demo;
using Ombi.Helpers;
@@ -54,16 +52,13 @@ namespace Ombi.Controllers.V1
[ProducesDefaultResponseType]
public async Task> SearchMovie(string searchTerm)
{
- using (MiniProfiler.Current.Step("SearchingMovie"))
- {
- Logger.LogDebug("Searching : {searchTerm}", searchTerm);
+ Logger.LogDebug("Searching : {searchTerm}", searchTerm);
- if (IsDemo)
- {
- return await DemoMovieSearch.Search(searchTerm);
- }
- return await MovieEngine.Search(searchTerm, null, null);
+ if (IsDemo)
+ {
+ return await DemoMovieSearch.Search(searchTerm);
}
+ return await MovieEngine.Search(searchTerm, null, null);
}
///
@@ -102,12 +97,9 @@ namespace Ombi.Controllers.V1
return BadRequest();
}
- using (MiniProfiler.Current.Step("SearchingMovie"))
- {
- Logger.LogDebug("Searching : {0}, Year: {1}, Lang: {2}", model.SearchTerm, model.Year, model.LanguageCode);
+ Logger.LogDebug("Searching : {0}, Year: {1}, Lang: {2}", model.SearchTerm, model.Year, model.LanguageCode);
- return Json(await MovieEngine.Search(model.SearchTerm, model.Year, model.LanguageCode));
- }
+ return Json(await MovieEngine.Search(model.SearchTerm, model.Year, model.LanguageCode));
}
///
diff --git a/src/Ombi/Ombi.csproj b/src/Ombi/Ombi.csproj
index 3a4fbad5d..e75774615 100644
--- a/src/Ombi/Ombi.csproj
+++ b/src/Ombi/Ombi.csproj
@@ -56,9 +56,9 @@
-
-
-
+
+
+
@@ -69,14 +69,13 @@
-
-
+
-
+