cloned from https://github.com/lrusak/plugin.audio.subsonic/commit/ad4fc0d0be33ea827 5a73e9a9d10bc6a5f772dba