← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~tomasgroth/openlp/biblegateway-legacy-2.0 into lp:openlp/2.0

 

Tomas Groth has proposed merging lp:~tomasgroth/openlp/biblegateway-legacy-2.0 into lp:openlp/2.0.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~tomasgroth/openlp/biblegateway-legacy-2.0/+merge/224565

Use the legacy layout of biblegateway
-- 
https://code.launchpad.net/~tomasgroth/openlp/biblegateway-legacy-2.0/+merge/224565
Your team OpenLP Core is requested to review the proposed merge of lp:~tomasgroth/openlp/biblegateway-legacy-2.0 into lp:openlp/2.0.
=== modified file 'openlp/plugins/bibles/lib/http.py'
--- openlp/plugins/bibles/lib/http.py	2014-01-14 19:25:18 +0000
+++ openlp/plugins/bibles/lib/http.py	2014-06-26 08:26:17 +0000
@@ -238,7 +238,7 @@
             version)
         cleaner = [(re.compile('&nbsp;|<br />|\'\+\''), 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'<meta name.*?/>', pre_parse_substitute='',
             cleaner=cleaner)
         if not soup:
@@ -271,7 +271,7 @@
         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:


Follow ups