add "/" which was missing in some cases, depending on the nextcloud config. 2 spaces could appear in the URL but it should work. Better than a missing "/"
Renamed the file lib/OPDSrenderer.php to lib/OPDSRenderer.php as the class couldn't be found and calibre_opds was not working at all.