Thank you very much for publishing this. I tried this on a spare pi and after getting it to work I moved it to my pi 4 music server that is running OMV for the rest of my applications.
If the music_directory is on a machine running SMB, the music_directory is smb://id:password@url/path. It took me several days to find out how to do this 🙂