https://github.com/RuudBurger/CouchPotatoServer/commit/0d3c0c407780f99191c2e010c2fd750f2494e7e9