cloned from https://github.com/lrusak/plugin.audio.subsonic/commit/761fc593c4a94027b 6483b98886a995b88bb03af