cloned from https://github.com/lrusak/plugin.audio.subsonic/commit/5c5040a7d92a8e88c 8e371140a0fa2c6e606d0d5