diff options
| author | Cody Robibero <cody@robibe.ro> | 2026-08-01 08:06:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 08:06:02 -0400 |
| commit | e816870f679f74164ecedccd98b8d8244ffb9593 (patch) | |
| tree | 6b5f581d8e9ec6c6929abe4384bbe32771b75e4a /Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs | |
| parent | b2ae39e0d911dd8065c4504a82b00965a18c6bfd (diff) | |
| parent | 8293eb26b995a21f88bff60dcf93da8d98080cc0 (diff) | |
Merge pull request #17416 from Shadowghost/enable-duplicate-playlist-children
Allow duplicate LinkedChildren for Playlists
Diffstat (limited to 'Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs b/Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs index 74c1f69616..d6513fc79c 100644 --- a/Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs +++ b/Emby.Server.Implementations/Library/Resolvers/PlaylistResolver.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; +using Emby.Server.Implementations.Playlists; using Jellyfin.Data.Enums; using Jellyfin.Extensions; using MediaBrowser.Controller.Library; @@ -46,6 +47,19 @@ namespace Emby.Server.Implementations.Library.Resolvers }; } + // Anything directly inside the internal playlists folder is a playlist, even when its + // playlist.xml is missing: failing to resolve here makes the library scan treat the + // playlist as deleted from disk and remove it, taking its items with it. + if (args.Parent is PlaylistsFolder) + { + return new Playlist + { + Path = args.Path, + Name = filename, + OpenAccess = true + }; + } + // It's a directory-based playlist if the directory contains a playlist file IEnumerable<string> filePaths; try |
