remove warnings, but still no config page
This commit is contained in:
parent
88a1de5d7d
commit
89ee319025
|
|
@ -7,6 +7,9 @@ namespace Jellyfin.Plugin.Webdav.Configuration
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class PluginConfiguration : BasePluginConfiguration
|
public class PluginConfiguration : BasePluginConfiguration
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="PluginConfiguration"/> class.
|
||||||
|
/// </summary>
|
||||||
public PluginConfiguration()
|
public PluginConfiguration()
|
||||||
{
|
{
|
||||||
BaseUrl = "";
|
BaseUrl = "";
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,9 @@
|
||||||
<EmbeddedResource Include="Configuration\configPage.html" />
|
<EmbeddedResource Include="Configuration\configPage.html" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="plugin.json">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ namespace Jellyfin.Plugin.Webdav
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the plugin instance.
|
/// Gets the plugin instance.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static WebdavPlugin Instance { get; private set; }
|
public static WebdavPlugin? Instance { get; private set; }
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public IEnumerable<PluginPageInfo> GetPages()
|
public IEnumerable<PluginPageInfo> GetPages()
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@ namespace Jellyfin.Plugin.Webdav
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
||||||
{
|
{
|
||||||
// Register plugin configuration instance
|
|
||||||
serviceCollection.AddSingleton<Configuration.PluginConfiguration>(_ => WebdavPlugin.Instance.Configuration);
|
|
||||||
serviceCollection.AddSingleton<WebDavClientService>();
|
serviceCollection.AddSingleton<WebDavClientService>();
|
||||||
serviceCollection.AddHostedService<WebDavSyncService>();
|
serviceCollection.AddHostedService<WebDavSyncService>();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,11 @@ namespace Jellyfin.Plugin.Webdav.Controllers
|
||||||
private readonly WebDavClientService _webDavClientService;
|
private readonly WebDavClientService _webDavClientService;
|
||||||
private readonly PluginConfiguration _config;
|
private readonly PluginConfiguration _config;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="StreamController"/> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="webDavClientService">The WebDAV client service.</param>
|
||||||
|
/// <param name="config">The plugin configuration.</param>
|
||||||
public StreamController(WebDavClientService webDavClientService, PluginConfiguration config)
|
public StreamController(WebDavClientService webDavClientService, PluginConfiguration config)
|
||||||
{
|
{
|
||||||
_webDavClientService = webDavClientService;
|
_webDavClientService = webDavClientService;
|
||||||
|
|
@ -23,7 +28,7 @@ namespace Jellyfin.Plugin.Webdav.Controllers
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Streams the file at the given WebDAV path.
|
/// Streams the file at the given WebDAV path.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="*path">The relative path under the configured root.</param>
|
/// <param name="path">The relative path under the configured root.</param>
|
||||||
[HttpGet("{*path}")]
|
[HttpGet("{*path}")]
|
||||||
public async Task<IActionResult> Get(string path)
|
public async Task<IActionResult> Get(string path)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,10 @@ namespace Jellyfin.Plugin.Webdav
|
||||||
{
|
{
|
||||||
private readonly ILibraryManager _libraryManager;
|
private readonly ILibraryManager _libraryManager;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="WebDavHostedService"/> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="libraryManager">The library manager.</param>
|
||||||
public WebDavHostedService(ILibraryManager libraryManager)
|
public WebDavHostedService(ILibraryManager libraryManager)
|
||||||
{
|
{
|
||||||
_libraryManager = libraryManager;
|
_libraryManager = libraryManager;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ description: >
|
||||||
Integrates Nextcloud/WebDAV sources as virtual library content in Jellyfin.
|
Integrates Nextcloud/WebDAV sources as virtual library content in Jellyfin.
|
||||||
category: "General"
|
category: "General"
|
||||||
owner: "jellyfin"
|
owner: "jellyfin"
|
||||||
|
pages:
|
||||||
|
- name: WebDAV
|
||||||
|
embeddedResourcePath: Jellyfin.Plugin.Webdav.Configuration.configPage.html
|
||||||
artifacts:
|
artifacts:
|
||||||
- "Jellyfin.Plugin.Webdav.dll"
|
- "Jellyfin.Plugin.Webdav.dll"
|
||||||
- "WebDav.Client.dll"
|
- "WebDav.Client.dll"
|
||||||
|
|
|
||||||
21
plugin.json
Normal file
21
plugin.json
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"name": "WebDAV",
|
||||||
|
"guid": "5db89aeb-14ad-450b-bcf2-ae235ebbe299",
|
||||||
|
"version": "1.0.0.0",
|
||||||
|
"targetAbi": "10.9.0.0",
|
||||||
|
"framework": "net8.0",
|
||||||
|
"overview": "WebDAV Nextcloud integration plugin",
|
||||||
|
"description": "Integrates Nextcloud/WebDAV sources as virtual library content in Jellyfin.",
|
||||||
|
"category": "General",
|
||||||
|
"owner": "jellyfin",
|
||||||
|
"assemblies": [
|
||||||
|
"Jellyfin.Plugin.Webdav.dll",
|
||||||
|
"WebDav.Client.dll"
|
||||||
|
],
|
||||||
|
"pages": [
|
||||||
|
{
|
||||||
|
"name": "WebDAV",
|
||||||
|
"embeddedResourcePath": "Jellyfin.Plugin.Webdav.Configuration.configPage.html"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue