OCC Command Line - Rello/audioplayer GitHub Wiki
Run commands from the Nextcloud directory as the web-server user. These examples use www-data; adapt it to your server.
Scan
Scan new or changed audio and playlist files within each user's configured music folder:
sudo -u www-data php occ audioplayer:scan username
sudo -u www-data php occ audioplayer:scan username1 username2
sudo -u www-data php occ audioplayer:scan --all
Add -v or -vv for diagnostic output.
Reset
Reset deletes the indexed library, Audio Player playlists, streams, and playback statistics. It does not delete music files. Scan again to rebuild the library.
sudo -u www-data php occ audioplayer:reset username
sudo -u www-data php occ audioplayer:reset --all
--all affects every Nextcloud user.