cloned from https://github.com/lrusak/plugin.audio.subsonic/commit/ad830b67ddf88926e 12f75952e341d8d842cdb27