diff --git a/src/Ombi.Api.Emby/Models/Media/EmbyProviderids.cs b/src/Ombi.Api.Emby/Models/Media/EmbyProviderids.cs
index ca85ed1a5..4a19025de 100644
--- a/src/Ombi.Api.Emby/Models/Media/EmbyProviderids.cs
+++ b/src/Ombi.Api.Emby/Models/Media/EmbyProviderids.cs
@@ -1,27 +1,11 @@
-namespace Ombi.Api.Emby.Models.Movie
-{
- public class EmbyProviderids
- {
- public string Tmdb { get; set; }
- public string Imdb { get; set; }
- public string TmdbCollection { get; set; }
+using Ombi.Api.MediaServer.Models;
- public string Tvdb { get; set; }
+namespace Ombi.Api.Emby.Models.Movie
+{
+ public class EmbyProviderids: BaseProviderids
+ {
+ public string TmdbCollection { get; set; }
public string Zap2It { get; set; }
public string TvRage { get; set; }
-
- public bool Any()
- {
- if (string.IsNullOrEmpty(Imdb)
- && string.IsNullOrEmpty(Tmdb)
- && string.IsNullOrEmpty(Tvdb))
- {
- return true;
- }
- else
- {
- return false;
- }
- }
}
}
\ No newline at end of file
diff --git a/src/Ombi.Api.Emby/Ombi.Api.Emby.csproj b/src/Ombi.Api.Emby/Ombi.Api.Emby.csproj
index f167146af..b524c9ce4 100644
--- a/src/Ombi.Api.Emby/Ombi.Api.Emby.csproj
+++ b/src/Ombi.Api.Emby/Ombi.Api.Emby.csproj
@@ -12,6 +12,7 @@
+
diff --git a/src/Ombi.Api.Jellyfin/Models/Media/JellyfinProviderids.cs b/src/Ombi.Api.Jellyfin/Models/Media/JellyfinProviderids.cs
index 275797af5..0896ec4e9 100644
--- a/src/Ombi.Api.Jellyfin/Models/Media/JellyfinProviderids.cs
+++ b/src/Ombi.Api.Jellyfin/Models/Media/JellyfinProviderids.cs
@@ -1,27 +1,11 @@
-namespace Ombi.Api.Jellyfin.Models.Movie
-{
- public class JellyfinProviderids
- {
- public string Tmdb { get; set; }
- public string Imdb { get; set; }
- public string TmdbCollection { get; set; }
+using Ombi.Api.MediaServer.Models;
- public string Tvdb { get; set; }
+namespace Ombi.Api.Jellyfin.Models.Movie
+{
+ public class JellyfinProviderids: BaseProviderids
+ {
+ public string TmdbCollection { get; set; }
public string Zap2It { get; set; }
public string TvRage { get; set; }
-
- public bool Any()
- {
- if (string.IsNullOrEmpty(Imdb)
- && string.IsNullOrEmpty(Tmdb)
- && string.IsNullOrEmpty(Tvdb))
- {
- return true;
- }
- else
- {
- return false;
- }
- }
}
}
\ No newline at end of file
diff --git a/src/Ombi.Api.Jellyfin/Ombi.Api.Jellyfin.csproj b/src/Ombi.Api.Jellyfin/Ombi.Api.Jellyfin.csproj
index f167146af..dfdb5a93f 100644
--- a/src/Ombi.Api.Jellyfin/Ombi.Api.Jellyfin.csproj
+++ b/src/Ombi.Api.Jellyfin/Ombi.Api.Jellyfin.csproj
@@ -13,6 +13,7 @@
+
\ No newline at end of file
diff --git a/src/Ombi.Api.MediaServer/Models/BaseProviderids.cs b/src/Ombi.Api.MediaServer/Models/BaseProviderids.cs
new file mode 100644
index 000000000..6044288c6
--- /dev/null
+++ b/src/Ombi.Api.MediaServer/Models/BaseProviderids.cs
@@ -0,0 +1,11 @@
+namespace Ombi.Api.MediaServer.Models
+{
+ public class BaseProviderids
+ {
+ public string Tmdb { get; set; }
+ public string Imdb { get; set; }
+ public string Tvdb { get; set; }
+ public bool Any() =>
+ !string.IsNullOrEmpty(Imdb) || !string.IsNullOrEmpty(Tmdb) || !string.IsNullOrEmpty(Tvdb);
+ }
+}
\ No newline at end of file
diff --git a/src/Ombi.Api.MediaServer/Ombi.Api.MediaServer.csproj b/src/Ombi.Api.MediaServer/Ombi.Api.MediaServer.csproj
new file mode 100644
index 000000000..f167146af
--- /dev/null
+++ b/src/Ombi.Api.MediaServer/Ombi.Api.MediaServer.csproj
@@ -0,0 +1,18 @@
+
+
+
+ net6.0
+ 3.0.0.0
+ 3.0.0.0
+
+
+ 8.0
+ Debug;Release;NonUiBuild
+
+
+
+
+
+
+
+
\ No newline at end of file