Simple Kodi to Plex watched items conversion script

(Wow it's been 8 years since my last post.... really haven't done anything since then...)

Today I had to hack together a quick script for moving my wife's list of watched movies and TV shows from Kodi to Plex. I couldn't find anything like that on the web already, so I spent a few hours digging through Kodi's and Plex's database formats. 

No guarantees or warranties, even if this script kills your cat (I hope it doesn't). It's at for anybody who's interested.