08-25-2023, 05:49 AM | #1 |
Junior Member
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' 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'), ] |
08-25-2023, 05:54 AM | #2 |
creator of calibre
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your RSS feeds dont have summaries so the recipe cannot get them from there. Instead you will need to scrape the actual article page not just the rss feed, for information on how to do that, see https://manual.calibre-ebook.com/news.html
but note that this will require some programming. |
08-29-2023, 02:55 AM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2023
Device: kindle paperwhite 11th gen
|
It was helpful just to know that I can't use these RSS feeds to get information about summary. Good to avoid spending another few days on impossible things! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. | MarjaE | Library Management | 1 | 03-30-2021 11:46 AM |
<details><summary>title</summary>popup</details> | rjwse@aol.com | Editor | 4 | 03-28-2018 10:00 PM |
Is there a simple summary of what devices work " out of the box" with calibre | cybmole | Calibre | 36 | 02-19-2014 01:56 PM |
Automatic fill "Summary" text at ADD BOOK function | ttacta | Library Management | 0 | 10-10-2012 08:13 AM |
iLiad SDK details revealed! "Free" and "extended" ... | TadW | iRex Developer's Corner | 24 | 08-14-2006 03:29 AM |