aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/Plugins/GoogleBooks
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Providers/Plugins/GoogleBooks')
-rw-r--r--MediaBrowser.Providers/Plugins/GoogleBooks/GoogleBooksExternalId.cs23
-rw-r--r--MediaBrowser.Providers/Plugins/GoogleBooks/GoogleBooksExternalUrlProvider.cs25
2 files changed, 0 insertions, 48 deletions
diff --git a/MediaBrowser.Providers/Plugins/GoogleBooks/GoogleBooksExternalId.cs b/MediaBrowser.Providers/Plugins/GoogleBooks/GoogleBooksExternalId.cs
deleted file mode 100644
index 02d3b36974..0000000000
--- a/MediaBrowser.Providers/Plugins/GoogleBooks/GoogleBooksExternalId.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using MediaBrowser.Controller.Entities;
-using MediaBrowser.Controller.Providers;
-using MediaBrowser.Model.Entities;
-using MediaBrowser.Model.Providers;
-
-namespace MediaBrowser.Providers.Plugins.GoogleBooks
-{
- /// <inheritdoc />
- public class GoogleBooksExternalId : IExternalId
- {
- /// <inheritdoc />
- public string ProviderName => "Google Books";
-
- /// <inheritdoc />
- public string Key => "GoogleBooks";
-
- /// <inheritdoc />
- public ExternalIdMediaType? Type => null;
-
- /// <inheritdoc />
- public bool Supports(IHasProviderIds item) => item is Book;
- }
-}
diff --git a/MediaBrowser.Providers/Plugins/GoogleBooks/GoogleBooksExternalUrlProvider.cs b/MediaBrowser.Providers/Plugins/GoogleBooks/GoogleBooksExternalUrlProvider.cs
deleted file mode 100644
index 95047ee83e..0000000000
--- a/MediaBrowser.Providers/Plugins/GoogleBooks/GoogleBooksExternalUrlProvider.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System.Collections.Generic;
-using MediaBrowser.Controller.Entities;
-using MediaBrowser.Controller.Providers;
-using MediaBrowser.Model.Entities;
-
-namespace MediaBrowser.Providers.Plugins.GoogleBooks;
-
-/// <inheritdoc/>
-public class GoogleBooksExternalUrlProvider : IExternalUrlProvider
-{
- /// <inheritdoc />
- public string Name => "Google Books";
-
- /// <inheritdoc />
- public IEnumerable<string> GetExternalUrls(BaseItem item)
- {
- if (item.TryGetProviderId("GoogleBooks", out var externalId))
- {
- if (item is Book)
- {
- yield return $"https://books.google.com/books?id={externalId}";
- }
- }
- }
-}