![]() |
#1 |
Member
![]() 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; } 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;} ''' Matt |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,186
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?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2010
Device: Kindle2
|
Quote:
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! |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,186
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
|
![]() |
![]() |
![]() |
#5 |
Member
![]() 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! |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |