View Single Post
Old 11-30-2010, 04:55 AM   #2
miwie
Connoisseur
miwie began at the beginning.
 
Posts: 76
Karma: 12
Join Date: Nov 2010
Device: Android, PB Pro 602
Hi,

your recipe looks mostly like the one I use.
Two suggestions:

1. You shoud experiment with
Code:
masthead_url = 'http://www.fr-online.de/image/view/-/1474018/data/823552/-/logo.png'
which puts the logo above the main menu (which IMHO looks good)

2. Try out
Code:
    def get_cover_url(self):

    # True if special cover image from iPad version wanted (might not look good)
    use_ipad_cover = False;


        def_cover_url = 'http://www.fr-ipad.de/wp-content/uploads/2010/09/merkel-printtitel.jpg'

        if self.use_ipad_cover:
            cover_url = None
            index = 'http://www.fr-ipad.de/die-ausgaben/'
            soup = self.index_to_soup(index)
            link_item = soup.find('div',attrs={'class':'ngg-thumbnail'})
            if link_item:
                cover_url = link_item.img['src']
                return cover_url

        return def_cover_url
which uses (optionally) the iPad cover image as EPUB cover - though this scales not very good.
miwie is offline   Reply With Quote