PM4K / PlexMod for Kodi (18, 19, 20, 21, 22+)

PSA: If and only if you’ve been running the latest Plex Pass PMS (Plex Server) betas: There’s been a bug in one of the previous betas, which fills up (likely has filled up) your library.db with garbage bandwidth statistics data if the transcode endpoint is used.

PM4K uses that endpoint to determine playback modes, so if used in conjunction with that beta, you might see a pretty large Plug-in Support\Databases\com.plexapp.plugins.library.db. You can either wait for the next release, which will fix that, or you can fix it on your own (you’ll have to use Plex SQLite manually, though).

In my example that amounted to a 50 GB DB file (it’s normally ~480 MB) and frequent crashes when it tried its DB optimization run.

Reference: Library.db size more than doubled in latest version - #209 by marcjt

Solution: Library.db size more than doubled in latest version - #188 by hlve
If you’re using docker, you might have to use the Plex SQLite binary from within your docker container:

docker inspect plexcontainername

note UpperDir (usually something like /var/lib/docker/overlay2/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/diff, then use:
/var/lib/docker/overlay2/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/diff/usr/lib/plexmediaserver/Plex\ SQLite on the host machine. You can also enter the docker container and use it there.

And a little teaser for you guys:

Edit: PMS update has been released

16 Likes