diff --git a/WebDavClientService.cs b/WebDavClientService.cs index 9633e4d..cb38321 100644 --- a/WebDavClientService.cs +++ b/WebDavClientService.cs @@ -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; /// /// Service for interacting with WebDAV endpoints. diff --git a/WebDavSyncService.cs b/WebDavSyncService.cs index 2ba7d3a..61276ee 100644 --- a/WebDavSyncService.cs +++ b/WebDavSyncService.cs @@ -9,6 +9,7 @@ namespace Jellyfin.Plugin.Webdav using MediaBrowser.Controller.Library; using System.Collections.Generic; using Microsoft.Extensions.Hosting; + using MediaBrowser.Model.Configuration; /// /// 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)