Skip to content

Deleting non-season folder within a series causes series to be deleted #11945

Closed
@theguymadmax

Description

Please describe your bug

Ffprobe kept running a scan on one of my TV series. After investigating, I noticed I had a folder titled Screens in the series folder, which showed up as an empty folder on the webui. So I went into the webui and selected the empty screens folder for deletion, which it did. Then the server deleted the whole series.

TV
--Series Name
----Season 01
----Screens

Reproduction Steps

  1. Have a folder not named season xx in a tv series, ex: screens, subs, etc.
  2. See that there is a empty folder next to your other season folders in the webui
  3. Delete empty folder from webui
  4. Observe that the server will delete the entire series not just the empty folder

Jellyfin Version

10.9.0

if other:

10.9.4

Environment

- OS: Windows 10
- Linux Kernel: N/A
- Virtualization: No
- Clients: N/A
- Browser: Firefox
- FFmpeg Version: 6.0.1-7
- Playback Method: N/A
- Hardware Acceleration: N/A
- GPU Model: N/A
- Plugins: N/A
- Reverse Proxy: No
- Base URL: N/A
- Networking: N/A
- Storage:N/A
- Server: 10.9.4

Jellyfin logs

Me deleting the folder name "Screens":
Line 2520: [2024-06-03 12:52:33.375 -04:00] [INF] [6] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Season", Name: "Screens", Path: "F:\MediaF\TV\Bodies (2023)", Id: 7b661d96-c273-609c-4120-c8acbee5fe8d

Line 2521: [2024-06-03 12:52:33.382 -04:00] [INF] [6] Emby.Server.Implementations.Library.LibraryManager: Deleting item path, Type: "Season", Name: "Screens", Path: "F:\MediaF\TV\Bodies (2023)", Id: 7b661d96-c273-609c-4120-c8acbee5fe8d

Server decides to delete main folder, Why?:
Line 2530: [2024-06-03 12:54:29.999 -04:00] [INF] [52] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Series", Name: "Bodies", Path: "F:\MediaF\TV\Bodies (2023)", Id: ee372da8-5e1b-5e14-9d1c-eff1594b65d7

Line 2698: [2024-06-03 12:57:52.799 -04:00] [INF] [27] Emby.Server.Implementations.Data.CleanDatabaseScheduledTask: Cleaning item "'We Are One Another's Ghosts'" type: "Episode" path: "F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E05.mp4"
	
Line 2699: [2024-06-03 12:57:52.802 -04:00] [INF] [27] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Episode", Name: "'We Are One Another's Ghosts'", Path: "F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E05.mp4", Id: 878955f6-0a34-2da1-ac80-b2dc8a7f675b

Line 2700: [2024-06-03 12:57:52.816 -04:00] [INF] [27] Emby.Server.Implementations.Data.CleanDatabaseScheduledTask: Cleaning item "'The World Is Yours'" type: "Episode" path: "F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E06.mp4"

Line 2701: [2024-06-03 12:57:52.819 -04:00] [INF] [27] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Episode", Name: "'The World Is Yours'", Path: "F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E06.mp4", Id: f20c9a8e-c51b-f6ec-faeb-661d78cbd786
	
Line 2702: [2024-06-03 12:57:52.830 -04:00] [INF] [27] Emby.Server.Implementations.Data.CleanDatabaseScheduledTask: Cleaning item "'Catch Me If You Can'" type: "Episode" path: "F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E07.mp4"
	Line 2703: [2024-06-03 12:57:52.834 -04:00] [INF] [27] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Episode", Name: "'Catch Me If You Can'", Path: "F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E07.mp4", Id: 769dcde7-c62f-a74f-46d1-d7efc47df1f1
	
Line 2704: [2024-06-03 12:57:52.845 -04:00] [INF] [27] Emby.Server.Implementations.Data.CleanDatabaseScheduledTask: Cleaning item "'Know You Are Loved'" type: "Episode" path: "F:\MediaF\TV\Bodies (2023)\S01\BodiesS01E08.mp4"
	
Line 2705: [2024-06-03 12:57:52.849 -04:00] [INF] [27] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Episode", Name: "'Know You Are Loved'", Path: "F:\MediaF\TV\Bodies (2023)\S01\BodiesS01E08.mp4", Id: 927af276-83af-10ac-79d0-a484f031611c

FFmpeg logs

Log file showing that ffprobe kept scanning this series -just a snnipet

Line  121: [2024-06-03 10:46:42.818 -04:00] [INF] [60] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E01.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
	Line  129: [2024-06-03 10:46:43.188 -04:00] [INF] [60] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E01.en.forced.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  133: [2024-06-03 10:46:43.417 -04:00] [INF] [60] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E01.en.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  157: [2024-06-03 10:46:44.261 -04:00] [INF] [60] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E02.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
	Line  172: [2024-06-03 10:46:44.580 -04:00] [INF] [60] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E02.en.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  178: [2024-06-03 10:46:44.949 -04:00] [INF] [60] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E03.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
	Line  184: [2024-06-03 10:46:45.249 -04:00] [INF] [60] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E03.en.forced.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  187: [2024-06-03 10:46:45.415 -04:00] [INF] [60] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E03.en.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  192: [2024-06-03 10:46:45.753 -04:00] [INF] [65] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E04.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
	Line  197: [2024-06-03 10:46:46.000 -04:00] [INF] [56] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E04.en.forced.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  200: [2024-06-03 10:46:46.142 -04:00] [INF] [65] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E04.en.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  204: [2024-06-03 10:46:46.521 -04:00] [INF] [65] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E05.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
	Line  206: [2024-06-03 10:46:46.750 -04:00] [INF] [58] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E05.en.forced.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  209: [2024-06-03 10:46:46.916 -04:00] [INF] [58] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E05.en.srt\" -threads 0 -v warning -print_format json -show_streams -show_format"
	Line  212: [2024-06-03 10:46:47.169 -04:00] [INF] [66] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\MediaF\TV\Bodies (2023)\S01\Bodies.S01E06.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions