XBMC orphaned movie folder remover

xbmc logoI’m a big fan of XBMC KODI but have an issue when it comes to the way KODI handles removing watched movies.  When  you delete a movie from the database (and file system if you’ve configured KODI to allow file deletion) KODI deletes the movie file but not the directory, thumbnails, and various other accompanying files.  After a while you have all these orphaned movie folders lying around.

Here’s a thread on the subject: //forum.xbmc.org/showthread.php?tid=128963