jellyfin / jellyfin-kodi

Jellyfin Plugin for Kodi
https://jellyfin.org
GNU General Public License v3.0
845 stars 113 forks source link

Library Cleanup removes all Jellyfin entries from the Library #409

Open gersilex opened 4 years ago

gersilex commented 4 years ago

Describe the bug

A Kodi library cleanup removes all Jellyfin library elements.

Excerpt of other reports this issue might replace or complement:

To Reproduce

  1. Have a working Kodi library with Jellyfin set up
  2. Run Clean Library from the Kodi Settings

Expected behavior

The library should remain populated with the Jellyfin media entries together with local files and entries of other addons.

Actual behavior All Jellyfin entries are gone. Local files and entries of other addons remain populated.

Logs

N/A

Screenshots

N/A (see https://kodi.wiki/view/Settings/Media/Library#Video_Library for Library Cleanup Function)

System (please complete the following information):

Additional context

Jellyfin writes directly to the Kodi database. Direct access to the Kodi database is not allowed according to the official Kodi Add-on rules. Maybe this relates to the issue.

The issue has been reported as different issues but it all boils down to the library entries and is not related to any other addon. Thanks to @CastagnaIT from the Netflix Addon for finding this out.