Python

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 https://github.com/mhoffesommer/kodi-to-plex for anybody who's interested.


How to automatically backup your hard earned bitcoin (with python)

Imagine a hard disk crash... and suddenly your hard earned bitcoins are gone! Doing a normal file system backup might not do you any good either - the wallet.dat file can not really be backed up while the Bitcoin app is running.

One solution is to use the JSON RPC call that triggers the Bitcoin app to create a 'safe copy' of the current wallet.dat file. In order to use this call you have to run the app in 'server' mode (so that it accepts RPC calls):

Then after downloading & extracting the attached zip file edit a few configuration ...