2025-05-10, 11:08 PM
Hi, I have encountered some unexpected behavior while deleting video files via the Jellyfin webclient.
It only seems to happen in a specific scenario where there is only a single video file left in the directory for example like this:
\home\main_directory\video1.mp4
\home\main_directory\sub_directory\video2.mp4
Now if I delete video1.mp4, the whole main_directory gets deleted including whatever is left in sub_directory.
This doesn't seem to happen if there are more video files in main_directory, but there can be more subdirectories, and stuff inside them seem to not matter.
I tried to replicate the folder structure as described and rescanned, and this is what basically happens:
[2025-05-11 00:51:59.955 +02:00] [INF] [14] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Video", Name: "video1", Path: "/media/home/main_directory/video1.mp4", Id:...
[2025-05-11 00:51:59.960 +02:00] [INF] [14] Emby.Server.Implementations.Library.LibraryManager: Deleting item path, Type: "Video", Name: "video1", Path: "/media/home/main_directory", Id:...
video2.mp4 will still be shown in the Library, but unplayable, because it's gone.
Is there a setting to prevent this or is this a bug?
I am running Linux docker v10.10.7, using the web client.
Thanks in advance,
S
It only seems to happen in a specific scenario where there is only a single video file left in the directory for example like this:
\home\main_directory\video1.mp4
\home\main_directory\sub_directory\video2.mp4
Now if I delete video1.mp4, the whole main_directory gets deleted including whatever is left in sub_directory.
This doesn't seem to happen if there are more video files in main_directory, but there can be more subdirectories, and stuff inside them seem to not matter.
I tried to replicate the folder structure as described and rescanned, and this is what basically happens:
[2025-05-11 00:51:59.955 +02:00] [INF] [14] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Video", Name: "video1", Path: "/media/home/main_directory/video1.mp4", Id:...
[2025-05-11 00:51:59.960 +02:00] [INF] [14] Emby.Server.Implementations.Library.LibraryManager: Deleting item path, Type: "Video", Name: "video1", Path: "/media/home/main_directory", Id:...
video2.mp4 will still be shown in the Library, but unplayable, because it's gone.
Is there a setting to prevent this or is this a bug?
I am running Linux docker v10.10.7, using the web client.
Thanks in advance,
S