jellyfin-archive/jellyfin-plugin-autoorganize

Error processing request: value cannot be null, parameter 'g' - when correcting match

moeffju opened this issue · 6 comments

When I try to Auto Organize and it fails because it cannot identify the media, and I try to edit the result manually (using the pencil icon), I get the following error on submitting the form:

Jan 08 19:57:15 mediaserver jellyfin[233639]: [19:57:15] [ERR] Error processing request. URL POST /Library/FileOrganizations/c02cce3f04471059eaf25536f00cdb8d/Episode/Organize.
Jan 08 19:57:15 mediaserver jellyfin[233639]: System.Exception: Value cannot be null. (Parameter 'g')
Jan 08 19:57:15 mediaserver jellyfin[233639]:    at AutoOrganize.Core.FileOrganizationService.PerformOrganization(EpisodeFileOrganizationRequest request)

It doesn't matter whether I try with Movies or Series.

What version are you using?

Version 12.0.0.0 of the plugin.

From what I've googled this seems to point to a null GUID value somewhere, but I don't know how/why that would happen here as I'm trying to add an episode or movie that has no prior library references. It's also been happening since installation (back then with v10 of the plugin didn't do anything so I updated to v11).

This is an example JSON request body:

{"SeriesId":null,
"SeasonNumber":"1",
"EpisodeNumber":"1",
"EndingEpisodeNumber":"2",
"RememberCorrection":false,
"NewSeriesProviderIds":{"Tmdb":"124579"},
"NewSeriesName":"Farscape: The Peacekeeper Wars",
"TargetFolder":"/srv/storage/Series"}

In addition, as the server throws 500, the AutoOrganize frontend only throws up an error page saying "Error", with no content, and a button "Got it", which is not very helpful :D

And as for Jellyfin I was using 10.7.7 at first, then updated to 10.8.0 alpha 3 to be able to use v11 of the autoorganize plugin, and now run 10.8.0alpha5. This issue has been around the entire time that the AutoOrganize plugin was otherwise working though (i.e. starting from v11 on Jellyfin 10.8.0-alpha3).

I'm not sure how to use this plugin so I attempted to fix by just reading the code...

Hopefully #80 fixes it? I added the prebuilt plugin to the PR for testing