From 45cd4c181e5e0feae01b505282182e097ba6bf2a Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Tue, 24 Feb 2009 21:00:00 +0000 Subject: [PATCH] Final tidy up for bible plugin for now. bzr-revno: 346 --- openlp/plugins/bibles/bibleplugin.py | 2 +- openlp/plugins/bibles/lib/bibleHTTPimpl.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/bibles/bibleplugin.py b/openlp/plugins/bibles/bibleplugin.py index 68f6c764c..022789182 100644 --- a/openlp/plugins/bibles/bibleplugin.py +++ b/openlp/plugins/bibles/bibleplugin.py @@ -559,7 +559,7 @@ class BiblePlugin(Plugin, PluginUtils): message = "No chapter found for search" #print "message = " + str(message) #print "search = " + str(original) - print "results = " + str(book) + " @ "+ str(start_chapter)+" @ "+ str(end_chapter)+" @ "+ str(start_verse)+ " @ "+ str(end_verse) + #print "results = " + str(book) + " @ "+ str(start_chapter)+" @ "+ str(end_chapter)+" @ "+ str(start_verse)+ " @ "+ str(end_verse) if message == None: self.search_results = None diff --git a/openlp/plugins/bibles/lib/bibleHTTPimpl.py b/openlp/plugins/bibles/lib/bibleHTTPimpl.py index c8eeb7817..b56867ea2 100644 --- a/openlp/plugins/bibles/lib/bibleHTTPimpl.py +++ b/openlp/plugins/bibles/lib/bibleHTTPimpl.py @@ -93,7 +93,8 @@ class CWExtract(BibleCommon): bookname - text name of in english eg 'gen' for Genesis chapter - chapter number """ - log.debug( "get_bible_chapter %s,%s,%s,%s", version, bookid, bookname, chapter) + log.debug( "get_bible_chapter %s,%s,%s,%s", version, bookid, bookname, chapter) + bookname = bookname.replace(" ", "") urlstring = "http://bible.crosswalk.com/OnlineStudyBible/bible.cgi?word="+bookname+"+"+str(chapter)+"&version="+version xml_string = self._get_web_text(urlstring, self.proxyurl) #log.debug("Return data %s", xml_string)