it builds again

This commit is contained in:
copyrights 2025-04-21 15:04:10 +02:00
parent 7a89d08fc3
commit d551480b5d
2 changed files with 4 additions and 2 deletions

View file

@ -11,7 +11,7 @@ namespace Jellyfin.Plugin.Webdav
using System.Net;
using System.Threading.Tasks;
using Jellyfin.Plugin.Webdav.Configuration;
using WebDav.Client;
using WebDav;
/// <summary>
/// Service for interacting with WebDAV endpoints.

View file

@ -9,6 +9,7 @@ namespace Jellyfin.Plugin.Webdav
using MediaBrowser.Controller.Library;
using System.Collections.Generic;
using Microsoft.Extensions.Hosting;
using MediaBrowser.Model.Configuration;
/// <summary>
/// Hosted service that synchronizes WebDAV content into the local cache directory
@ -58,8 +59,9 @@ namespace Jellyfin.Plugin.Webdav
var options = new LibraryOptions();
await libraryManager
.AddVirtualFolder("WebDAV", new[] { localRoot }, options, true)
.AddVirtualFolder("WebDAV", null, options, true)
.ConfigureAwait(false);
libraryManager.AddMediaPath("WebDAV", new MediaPathInfo { Path = localRoot });
}
private async Task SyncDirectoryAsync(string remotePath, string localPath, CancellationToken token)