diff --git a/Jellyfin.Api/Controllers/PluginsController.cs b/Jellyfin.Api/Controllers/PluginsController.cs
index b41df1abb1..b227dba2df 100644
--- a/Jellyfin.Api/Controllers/PluginsController.cs
+++ b/Jellyfin.Api/Controllers/PluginsController.cs
@@ -7,7 +7,6 @@ using System.Text.Json;
using System.Threading.Tasks;
using Jellyfin.Api.Attributes;
using Jellyfin.Api.Constants;
-using Jellyfin.Api.Models.PluginDtos;
using Jellyfin.Extensions.Json;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Common.Updates;
@@ -43,61 +42,6 @@ namespace Jellyfin.Api.Controllers
_serializerOptions = JsonDefaults.Options;
}
- ///
- /// Get plugin security info.
- ///
- /// Plugin security info returned.
- /// Plugin security info.
- [Obsolete("This endpoint should not be used.")]
- [HttpGet("SecurityInfo")]
- [ProducesResponseType(StatusCodes.Status200OK)]
- public static ActionResult GetPluginSecurityInfo()
- {
- return new PluginSecurityInfo
- {
- IsMbSupporter = true,
- SupporterKey = "IAmTotallyLegit"
- };
- }
-
- ///
- /// Gets registration status for a feature.
- ///
- /// Feature name.
- /// Registration status returned.
- /// Mb registration record.
- [Obsolete("This endpoint should not be used.")]
- [HttpPost("RegistrationRecords/{name}")]
- [ProducesResponseType(StatusCodes.Status200OK)]
- public static ActionResult GetRegistrationStatus([FromRoute, Required] string name)
- {
- return new MBRegistrationRecord
- {
- IsRegistered = true,
- RegChecked = true,
- TrialVersion = false,
- IsValid = true,
- RegError = false
- };
- }
-
- ///
- /// Gets registration status for a feature.
- ///
- /// Feature name.
- /// Not implemented.
- /// Not Implemented.
- /// This endpoint is not implemented.
- [Obsolete("Paid plugins are not supported")]
- [HttpGet("Registrations/{name}")]
- [ProducesResponseType(StatusCodes.Status501NotImplemented)]
- public static ActionResult GetRegistration([FromRoute, Required] string name)
- {
- // TODO Once we have proper apps and plugins and decide to break compatibility with paid plugins,
- // delete all these registration endpoints. They are only kept for compatibility.
- throw new NotImplementedException();
- }
-
///
/// Gets a list of currently installed plugins.
///
@@ -317,20 +261,5 @@ namespace Jellyfin.Api.Controllers
return NotFound();
}
-
- ///
- /// Updates plugin security info.
- ///
- /// Plugin security info.
- /// Plugin security info updated.
- /// An .
- [Obsolete("This endpoint should not be used.")]
- [HttpPost("SecurityInfo")]
- [Authorize(Policy = Policies.RequiresElevation)]
- [ProducesResponseType(StatusCodes.Status204NoContent)]
- public ActionResult UpdatePluginSecurityInfo([FromBody, Required] PluginSecurityInfo pluginSecurityInfo)
- {
- return NoContent();
- }
}
}
diff --git a/Jellyfin.Api/Models/PluginDtos/MBRegistrationRecord.cs b/Jellyfin.Api/Models/PluginDtos/MBRegistrationRecord.cs
deleted file mode 100644
index 7f1255f4b6..0000000000
--- a/Jellyfin.Api/Models/PluginDtos/MBRegistrationRecord.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-
-namespace Jellyfin.Api.Models.PluginDtos
-{
- ///
- /// MB Registration Record.
- ///
- public class MBRegistrationRecord
- {
- ///
- /// Gets or sets expiration date.
- ///
- public DateTime ExpirationDate { get; set; }
-
- ///
- /// Gets or sets a value indicating whether is registered.
- ///
- public bool IsRegistered { get; set; }
-
- ///
- /// Gets or sets a value indicating whether reg checked.
- ///
- public bool RegChecked { get; set; }
-
- ///
- /// Gets or sets a value indicating whether reg error.
- ///
- public bool RegError { get; set; }
-
- ///
- /// Gets or sets a value indicating whether trial version.
- ///
- public bool TrialVersion { get; set; }
-
- ///
- /// Gets or sets a value indicating whether is valid.
- ///
- public bool IsValid { get; set; }
- }
-}
diff --git a/Jellyfin.Api/Models/PluginDtos/PluginSecurityInfo.cs b/Jellyfin.Api/Models/PluginDtos/PluginSecurityInfo.cs
deleted file mode 100644
index a90398425a..0000000000
--- a/Jellyfin.Api/Models/PluginDtos/PluginSecurityInfo.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-namespace Jellyfin.Api.Models.PluginDtos
-{
- ///
- /// Plugin security info.
- ///
- public class PluginSecurityInfo
- {
- ///
- /// Gets or sets the supporter key.
- ///
- public string? SupporterKey { get; set; }
-
- ///
- /// Gets or sets a value indicating whether is mb supporter.
- ///
- public bool IsMbSupporter { get; set; }
- }
-}