Exclude file system based library playlists from migration (#13059)

This commit is contained in:
Tim Eisele 2024-11-18 04:18:53 +01:00 committed by GitHub
parent be23f4eb0d
commit 23de7e517e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ namespace Emby.Server.Implementations.Library.Resolvers
{ {
if (args.IsDirectory) if (args.IsDirectory)
{ {
// It's a boxset if the path is a directory with [playlist] in its name // It's a playlist if the path is a directory with [playlist] in its name
var filename = Path.GetFileName(Path.TrimEndingDirectorySeparator(args.Path)); var filename = Path.GetFileName(Path.TrimEndingDirectorySeparator(args.Path));
if (string.IsNullOrEmpty(filename)) if (string.IsNullOrEmpty(filename))
{ {

View File

@ -46,6 +46,7 @@ internal class RemoveDuplicatePlaylistChildren : IMigrationRoutine
IncludeItemTypes = [BaseItemKind.Playlist] IncludeItemTypes = [BaseItemKind.Playlist]
}) })
.Cast<Playlist>() .Cast<Playlist>()
.Where(p => !p.OpenAccess || !p.OwnerUserId.Equals(Guid.Empty))
.ToArray(); .ToArray();
if (playlists.Length > 0) if (playlists.Length > 0)