Comment 3 for bug 1827792

Revision history for this message
Phill (phill-ridout) wrote : Re: Bible Import Crashes OpenLP

This error is caused because we assume that the book name is the same as that used in the url.

OpenLP gets the book name here:
https://bazaar.launchpad.net/~openlp-core/openlp/trunk/view/head:/openlp/plugins/bibles/lib/importers/http.py#L521
reading the content in the h4 tag, but in the case of the Chinese bible the book name does not match url component. Instead we should be getting that from anchor href tag:

<div class="panel-body">
    <a class="btn btn-lg btn-block bst-button-white" href="https://www.biblestudytools.com/cuv/chuangshiji/">
        <h4 class="small-header ">創世記</h4>
    </a>

Unfortunately its not that quite simple as the http importers currently make no provision for the url component being different to the book name, and there's no column in the db to store it.