moved some code

This commit is contained in:
Andreas Preikschat 2010-08-31 20:42:28 +02:00
commit 5e0625824f

View File

@ -507,20 +507,21 @@ class BibleMediaItem(MediaManagerItem):
footer = u'%s (%s %s)' % (book, version, copyright) footer = u'%s (%s %s)' % (book, version, copyright)
if footer not in raw_footer: if footer not in raw_footer:
raw_footer.append(footer) raw_footer.append(footer)
if dual_bible: if has_dual_bible:
footer = u'%s (%s %s)' % (book, dual_version, dual_copyright) if dual_bible:
if footer not in raw_footer: footer = u'%s (%s %s)' % (book, dual_version,
raw_footer.append(footer) dual_copyright)
# If there is an old bible_text we have to add it. if footer not in raw_footer:
if bible_text: raw_footer.append(footer)
# If there is an old bible_text we have to add it.
if bible_text:
raw_slides.append(bible_text)
bible_text = u''
bible_text = u'%s %s\n\n%s %s' % (verse_text, text,
verse_text, dual_text)
raw_slides.append(bible_text) raw_slides.append(bible_text)
bible_text = u'' bible_text = u''
bible_text = u'%s %s\n\n%s %s' % (verse_text, text, elif self.parent.settings_tab.layout_style == 0:
verse_text, dual_text)
raw_slides.append(bible_text)
bible_text = u''
elif has_dual_bible:
if self.parent.settings_tab.layout_style == 0:
bible_text = u'%s %s' % (verse_text, text) bible_text = u'%s %s' % (verse_text, text)
raw_slides.append(bible_text) raw_slides.append(bible_text)
bible_text = u'' bible_text = u''