thanks for your reply. But this didn’t work.
The problem is not the scanning of the files.
When my Raspi is booting, it mounts the network share which stores all of the music.
But the NAS is still booting when the RasPi is trying to mount. Since the mount fails, the corresponding directory is empty.
If I reboot the RasPi or if i mount manuall once the NAS is running everything is fine.
So I’m looking for a script that delays the mount until the NAS is ready.
But it is not that urgent.