Updated URL parsing to handle remote book paths