Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
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
Old 03-01-2011, 12:12 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm confused. Are you saying that the Kindle is not displaying the author metadata? Or that you want to embed the author information in the content?
kovidgoyal is offline   Reply With Quote
Old 03-01-2011, 01:46 PM   #3
rylsfan
Member
rylsfan began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: Kindle2
Quote:
Originally Posted by kovidgoyal View Post
I'm confused. Are you saying that the Kindle is not displaying the author metadata? Or that you want to embed the author information in the content?
Sorry I wasn't more clear!

I would like to embed the author information in the content.

The author information is on the html page but is not making its way to the output of my recipe. I've found this to be consistent in Calibre, on the command line and when I view it on my Kindle.

I had a workaround (ie going to the section list) until the latest Kindle firmware update (3.1).

Hope what I'm saying makes sense. Thank you for reading this!
rylsfan is offline   Reply With Quote
Old 03-01-2011, 01:55 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If the Kindle refuses to show that metadata in the articles list, then I'm afraid there's nothing that you can do. The only solution would be to put the author name into the article title which your can do with populate_article_metadata
kovidgoyal is offline   Reply With Quote
Old 03-02-2011, 12:40 PM   #5
rylsfan
Member
rylsfan began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: Kindle2
Worked like a charm! Thank you so much!!!

I am including the recipe in a zip file. It's an update to the Credit Slips.org recipe that was put in the 0.7.46 build. Thank you again!
Attached Files
File Type: zip creditslips.zip (3.9 KB, 231 views)
rylsfan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Books not appearing on Kobo bobzed57 Kobo Reader 28 03-21-2013 08:01 AM
Is there a way to change author metadata in recipe? dochase Calibre 1 01-06-2011 07:18 PM
Kobo books not appearing JackandJessie Calibre 3 12-03-2010 02:22 PM
Nook not appearing 7.12 Tarran Calibre 3 08-05-2010 10:22 PM
Old title appearing in metadata Lexi Revellian Workshop 1 08-05-2010 08:52 AM


All times are GMT -4. The time now is 07:51 PM.


MobileRead.com is a privately owned, operated and funded community.