View Single Post
Old 08-25-2023, 05:49 AM   #1
hentai_dude
Junior Member
hentai_dude began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2023
Device: kindle paperwhite 11th gen
[help] Summary says "No details available"



Hi, I'm Hentai_dude who just recently bought a Kindle device and I'm not familiar with programming.

I tried to send a news feed to my Kindle using the Calibre feature, but the summary does not appear under the headline of the article, instead it says "No details available".
I would like to have the summary of the article displayed there.

I searched using the great Google engine and found several people here and there with similar problems.

I think the reason it is not displayed properly is because the "description" field in the RSS feed is blank.

After two days of trial and error, I was able to get to the point where I could change the display of the relevant section by changing the "text_summary".

Like this:
Code:
    def populate_article_metadata(self, article, soup, first):
        article.summary = article.text_summary = 'Hentai dude testing'
But what I really want my Kindle to display is not "Hentai dude testing" but a summary of the article.

Any help would be greatly appreciated!

This is my recipe, just in case:
Code:
from calibre.web.feeds.news import BasicNewsRecipe

class Sankei(BasicNewsRecipe):
    title          = 'Sankei'
    oldest_article = 2
    max_articles_per_feed = 100
    auto_cleanup   = True

    feeds          = [
        ('社会', 'https://assets.wor.jp/rss/rdf/sankei/affairs.rdf'),
        ('政治', 'https://assets.wor.jp/rss/rdf/sankei/politics.rdf'),
        ('経済', 'https://assets.wor.jp/rss/rdf/sankei/economy.rdf'),
        ('国際', 'https://assets.wor.jp/rss/rdf/sankei/world.rdf'),
        ('スポーツ', 'https://assets.wor.jp/rss/rdf/sankei/sports.rdf'),
        ('エンタメ', 'https://assets.wor.jp/rss/rdf/sankei/entertainments.rdf'),
        ('ライフ', 'https://assets.wor.jp/rss/rdf/sankei/life.rdf'),
    ]
hentai_dude is offline   Reply With Quote