BibleGateway fix

This commit is contained in:
Jon Tibble 2011-01-12 19:12:30 +00:00
parent 64367909ba
commit 0a5b44c6a3

View File

@ -208,7 +208,8 @@ class BGExtract(object):
u'version': u'%s' % version}) u'version': u'%s' % version})
cleaner = [(re.compile('&nbsp;|<br />|\'\+\''), lambda match: '')] cleaner = [(re.compile('&nbsp;|<br />|\'\+\''), lambda match: '')]
soup = get_soup_for_bible_ref( soup = get_soup_for_bible_ref(
u'http://www.biblegateway.com/passage/?%s' % url_params, cleaner) u'http://www.biblegateway.com/passage/?%s' % url_params,
cleaner=cleaner)
if not soup: if not soup:
return None return None
Receiver.send_message(u'openlp_process_events') Receiver.send_message(u'openlp_process_events')