forked from openlp/openlp
Fix crosswalk bible list download
This commit is contained in:
parent
7ee0af01b2
commit
fa9a29d303
@ -520,7 +520,7 @@ class CWExtract(RegistryProperties):
|
|||||||
returns a list in the form [(biblename, biblekey, language_code)]
|
returns a list in the form [(biblename, biblekey, language_code)]
|
||||||
"""
|
"""
|
||||||
log.debug('CWExtract.get_bibles_from_http')
|
log.debug('CWExtract.get_bibles_from_http')
|
||||||
bible_url = 'http://www.biblestudytools.com/search/bible-search.part/'
|
bible_url = 'http://www.biblestudytools.com/'
|
||||||
soup = get_soup_for_bible_ref(bible_url)
|
soup = get_soup_for_bible_ref(bible_url)
|
||||||
if not soup:
|
if not soup:
|
||||||
return None
|
return None
|
||||||
@ -528,7 +528,7 @@ class CWExtract(RegistryProperties):
|
|||||||
if not bible_select:
|
if not bible_select:
|
||||||
log.debug('No select tags found - did site change?')
|
log.debug('No select tags found - did site change?')
|
||||||
return None
|
return None
|
||||||
option_tags = bible_select.find_all('option')
|
option_tags = bible_select.find_all('option', {'class': 'log-translation'})
|
||||||
if not option_tags:
|
if not option_tags:
|
||||||
log.debug('No option tags found - did site change?')
|
log.debug('No option tags found - did site change?')
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user