Wrote this recently to dump the movies db to a text file because the iPhone Kodi remote doesn’t store a list of stuff like the Kore app does. Improvements