View Single Post
Old 03-01-2011, 12:02 PM   #1
rylsfan
Member
rylsfan began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: Kindle2
Author byline is not appearing on my recipe

Hello! I have a recipe for the website creditslips.org. My recipe works well but an annoyance is the author's information is not being displayed. Since the website has multiple contributors, I would find that information useful.

I am pretty sure that information is being transmitted because the author's name was always in section headings on my Kindle. However the recent Kindle update no longer displays the author info.

I really don't understand why this is and I would really appreciate your help. I have included the following research. I hope it can be useful.

The following details are from the following article on the website:http://www.creditslips.org/creditsli...channels-.html
The author information appears on the website and is tagged like so:
<div class="author">posted by Sarah Woo</div>

The author info is also available in the rss feed like so:
<author>
<name>Sarah Woo</name>
</author>

Finally, I inspected the .css and they have a field called .author that looks like this:
Code:
.author
       {margin: 0px 0px 10px 0px;
         font-family: 'Trebuchet MS', Verdana, sans-serif; 
         font-size: small; 
         color: #000000; 
         text-transform: none;
         font-variant: small-caps;
         padding-top: 1px;
         padding-left: 10px;           
        }
Here is the recipe I have been using:
Code:
#!/usr/bin/env  python
__license__ = 'GPL 3'
__copyright__ = 'zotzo'
__docformat__ = 'restructuredtext en'

from calibre.web.feeds.news import BasicNewsRecipe


class CreditSlips(BasicNewsRecipe):
    language = 'en'
    version = 1
    title = u'Credit Slips.org'
    publisher = u'Bankr-L'
    category = u'Economic blog'
    description = u'All things about credit.'
    #cover_url = 'http://bit.ly/hyZSTr'
    oldest_article = 5
    max_articles_per_feed = 100
    use_embedded_content = True
    no_stylesheets = True
    remove_javascript = True    

    conversion_options =   {
                               'comments': description,
                               'tags': category,
                               'language': 'en',
                               'publisher': publisher,
                           }
 
    feeds = [
               (u'Credit Slips', u'http://www.creditslips.org/creditslips/atom.xml')
           ]

    extra_css =    '''
                       .author {font-family:Helvetica,sans-serif; font-weight:normal;font-size:small;}
	                   h1      {font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
	                   p       {font-family:Helvetica,Arial,sans-serif;font-size:small;}
	                   body    {font-family:Helvetica,Arial,sans-serif;font-size:small;} 
	               '''
Any help would be greatly appreciated. Thank you!
Matt
rylsfan is offline   Reply With Quote