Audioplayer scan fails with LDAP integration


my nextcloud 11 instance is LDAP integrated and i’ve installed the audioplayer app.

when i try to index files, it just sits there and won’t process anything.

i went to the command line and executed:

root@nextcloud:/var/www# sudo -u apache php /var/www/htdocs/occ audioplayer:scan wiz User wiz does not exist

by checking the data directory, i see (as expected) my home folder is actually my LDAP ID (derived from my active directory UID). if i use this on the command line it all works as expected. (UID below has been modified)

root@nextcloud:/var/www# sudo -u apache php /var/www/htdocs/occ audioplayer:scan A69BE269-1061-4182-A464-696969696969 Start scan for A69BE269-1061-4182-A464-696969696969 Audios found: 157 Duplicates found: 0 Written to music library: 157 Albums found: 3 Errors: 0

the audioplayer code needs to be modified to work with the user id and not the login name.

cheers, wizdude.

Please file a bug report on GitHub. Thanks.