[GH-ISSUE #25] [Bug]: Plugin causes Jellyfin to crash when scanning series #24

Closed
opened 2026-03-23 20:34:50 +00:00 by mirror · 4 comments
Owner

Originally created by @wolffshots on GitHub (Oct 22, 2024).
Original GitHub issue: https://github.com/tubearchivist/tubearchivist-jf-plugin/issues/25

I've read the documentation

Operating System

Linux

Your Bug Report

Describe the bug

When scanning libraries the OnWatchedStatusChange is fired when scanning my normal Series library which causes this line to crash the Jellyfin server:

itemYTId = Utils.GetVideoNameFromPath(eventArgs.Item.Path);

I have specifically disabled the TubeArchvist plugin for the Series library but the issue persists unless I disable the plugin.

Steps To Reproduce

  • Install TubeArchvist JF plugin version 1.3.2 and start a full library scan.
  • When it gets to scanning Series it restarts the Jellyfin server because of the crash.
  • Server starts back up, restarts scan and crashes again and this repeats every few minutes indefinitely

Expected behavior

  • Install TubeArchvist JF plugin version 1.3.2 and start a full library scan and have the scan complete successfully for all libraries

Relevant Jellyfin log output

System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source, Func`2 predicate)
   at Jellyfin.Plugin.TubeArchivistMetadata.Utilities.Utils.DetectDirectorySeparator(String path)
   at Jellyfin.Plugin.TubeArchivistMetadata.Utilities.Utils.GetVideoNameFromPath(String path)
   at Jellyfin.Plugin.TubeArchivistMetadata.Plugin.OnWatchedStatusChange(Object sender, UserDataSaveEventArgs eventArgs)

Anything else?

I've got a fork with a workaround here that I have been testing that I will open a PR for soon once I have made a branch for the specific fix.

Originally created by @wolffshots on GitHub (Oct 22, 2024). Original GitHub issue: https://github.com/tubearchivist/tubearchivist-jf-plugin/issues/25 ### I've read the documentation - [X] I'm running the latest version of tubearchivist-jf-plugin. - [X] I have read the [how to open an issue](https://github.com/tubearchivist/tubearchivist/blob/master/CONTRIBUTING.md#how-to-open-an-issue) guide, particularly the [bug report](https://github.com/tubearchivist/tubearchivist/blob/master/CONTRIBUTING.md#bug-report) section. ### Operating System Linux ### Your Bug Report ## Describe the bug When scanning libraries the `OnWatchedStatusChange` is fired when scanning my normal Series library which causes this line to crash the Jellyfin server: ```cs itemYTId = Utils.GetVideoNameFromPath(eventArgs.Item.Path); ``` I have specifically disabled the TubeArchvist plugin for the Series library but the issue persists unless I disable the plugin. ## Steps To Reproduce - Install TubeArchvist JF plugin version 1.3.2 and start a full library scan. - When it gets to scanning Series it restarts the Jellyfin server because of the crash. - Server starts back up, restarts scan and crashes again and this repeats every few minutes indefinitely ## Expected behavior - Install TubeArchvist JF plugin version 1.3.2 and start a full library scan and have the scan complete successfully for all libraries ### Relevant Jellyfin log output ```shell System.ArgumentNullException: Value cannot be null. (Parameter 'source') at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source, Func`2 predicate) at Jellyfin.Plugin.TubeArchivistMetadata.Utilities.Utils.DetectDirectorySeparator(String path) at Jellyfin.Plugin.TubeArchivistMetadata.Utilities.Utils.GetVideoNameFromPath(String path) at Jellyfin.Plugin.TubeArchivistMetadata.Plugin.OnWatchedStatusChange(Object sender, UserDataSaveEventArgs eventArgs) ``` ### Anything else? I've got a fork with a workaround [here](https://github.com/wolffshots/tubearchivist-jf-plugin/) that I have been testing that I will open a PR for soon once I have made a branch for the specific fix.
Author
Owner

@DarkFighterLuke commented on GitHub (Oct 23, 2024):

Are you sure you don't have enabled TubeArchivist plugin on the wrong collections?
I can't reproduce the issue you face

<!-- gh-comment-id:2431694010 --> @DarkFighterLuke commented on GitHub (Oct 23, 2024): Are you sure you don't have enabled TubeArchivist plugin on the wrong collections? I can't reproduce the issue you face
Author
Owner

@wolffshots commented on GitHub (Oct 23, 2024):

Yeah I'm 100% sure I don't have it enabled on my normal Series collection and it's not an option on any other collections. Any other ideas what could be causing this?

It seems to happen every time I run a scan on my Series collection but the other seem to work fine (including the TA collection)

<!-- gh-comment-id:2432782925 --> @wolffshots commented on GitHub (Oct 23, 2024): Yeah I'm 100% sure I don't have it enabled on my normal Series collection and it's not an option on any other collections. Any other ideas what could be causing this? It seems to happen every time I run a scan on my Series collection but the other seem to work fine (including the TA collection)
Author
Owner

@DreizackLP commented on GitHub (Nov 1, 2024):

I have the same Problem

<!-- gh-comment-id:2451101937 --> @DreizackLP commented on GitHub (Nov 1, 2024): I have the same Problem
Author
Owner

@DarkFighterLuke commented on GitHub (Nov 4, 2024):

@wolffshots PR has been merged. I am closing this issue as I assume the fix will work (I was not able to reproduce the original error).

<!-- gh-comment-id:2455743015 --> @DarkFighterLuke commented on GitHub (Nov 4, 2024): @wolffshots PR has been merged. I am closing this issue as I assume the fix will work (I was not able to reproduce the original error).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tubearchivist/archived-tubearchivist-jf-plugin#24
No description provided.