From a37231dfd9d0af8c531aa202cda2b265bb4030a4 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Thu, 26 Jun 2014 10:23:16 +0200 Subject: [PATCH] Workaround for new biblegateway layout --- openlp/plugins/bibles/lib/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/bibles/lib/http.py b/openlp/plugins/bibles/lib/http.py index 5505b1663..b1cebaeb5 100644 --- a/openlp/plugins/bibles/lib/http.py +++ b/openlp/plugins/bibles/lib/http.py @@ -238,7 +238,7 @@ class BGExtract(object): version) cleaner = [(re.compile(' |
|\'\+\''), lambda match: '')] 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'', pre_parse_substitute='', cleaner=cleaner) if not soup: @@ -271,7 +271,7 @@ class BGExtract(object): log.debug(u'BGExtract.get_books_from_http("%s")', version) url_params = urllib.urlencode( {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 page = get_web_page(reference_url) if not page: