forked from openlp/openlp
Use the legacy layout of biblegateway
bzr-revno: 2199
This commit is contained in:
commit
9e7cb3cb88
@ -238,7 +238,7 @@ class BGExtract(object):
|
|||||||
version)
|
version)
|
||||||
cleaner = [(re.compile(' |<br />|\'\+\''), lambda match: '')]
|
cleaner = [(re.compile(' |<br />|\'\+\''), lambda match: '')]
|
||||||
soup = get_soup_for_bible_ref(
|
soup = get_soup_for_bible_ref(
|
||||||
u'http://www.biblegateway.com/passage/?%s' % url_params,
|
u'http://legacy.biblegateway.com/passage/?%s' % url_params,
|
||||||
pre_parse_regex=r'<meta name.*?/>', pre_parse_substitute='',
|
pre_parse_regex=r'<meta name.*?/>', pre_parse_substitute='',
|
||||||
cleaner=cleaner)
|
cleaner=cleaner)
|
||||||
if not soup:
|
if not soup:
|
||||||
@ -271,7 +271,7 @@ class BGExtract(object):
|
|||||||
log.debug(u'BGExtract.get_books_from_http("%s")', version)
|
log.debug(u'BGExtract.get_books_from_http("%s")', version)
|
||||||
url_params = urllib.urlencode(
|
url_params = urllib.urlencode(
|
||||||
{u'action': 'getVersionInfo', u'vid': u'%s' % version})
|
{u'action': 'getVersionInfo', u'vid': u'%s' % version})
|
||||||
reference_url = u'http://www.biblegateway.com/versions/?%s#books' % \
|
reference_url = u'http://legacy.biblegateway.com/versions/?%s#books' % \
|
||||||
url_params
|
url_params
|
||||||
page = get_web_page(reference_url)
|
page = get_web_page(reference_url)
|
||||||
if not page:
|
if not page:
|
||||||
|
Loading…
Reference in New Issue
Block a user