-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when trying to remove libraries: FullSync.remove_library() missing 1 required positional argument: 'library_id' #923
Comments
Looks like this is likely due to the function getting called with an empty string for the id, I need more logs, specifically the json blob(s) printed at the debug level (enable in the addon settings, not Kodi settings) just before the logged error. jellyfin-kodi/jellyfin_kodi/entrypoint/service.py Lines 366 to 371 in 1637658
jellyfin-kodi/jellyfin_kodi/entrypoint/service.py Lines 352 to 360 in 1637658
jellyfin-kodi/jellyfin_kodi/helper/utils.py Line 129 in 1637658
Could be a trailing comma in a list of IDs or some such |
Oh dear. I completely misunderstood this "Select the libraries to remove" UI: I now see that it's a kodi-2024-10-01_18.45.15.webmThis results in jellyfin-kodi/jellyfin_kodi/library.py Line 595 in 1637658
if selection is None check, and we end up setting Id to an empty array here.
So I'm unblocked! I just need to actually select the libraries I want. This simplest way to avoid the crash might be to tweak this if statement to also detect empty arrays. But it might also be nice to put the user in a loop, with a nice dialog telling them to actually select something (or bail out by selecting "Cancel"). |
Yea, those dialogs have tripped me up a few times too, it's the same functionality for adding libraries IIRC |
Describe the bug
The plugin crashes when I try to remove libraries under Addons > Jellyfin > Manage libraries > Remove libraries.
I see the following in my logs:
Additional context
jellyfin-kodi/jellyfin_kodi/library.py
Line 636 in 1637658
remove_library
takes 3 parameters (self, library_id, dialog). However, it's actually decorated with the@progress
decorator, which adds an optionalitem
argument as the second parameter after self.I think to fix this we'd need to start passing library_id as a keyword argument (right now it's getting consumed as the
item
parameter to the function that@progress
returns). We'd also need to pass indialog
, I'm not sure what that is.The text was updated successfully, but these errors were encountered: