![]() |
Recipe to output ToC as flattened ?
I'm not sure how to say it properly, I have a recipe with hundreds of feeds. However these feeds only contains 2-8 articles and all these feeds are connected to each other.
The default way Calibre fetching these feeds will result in messy ToC in epub to be like this : Title | |- Feeds1 | | | |-Article 1 | |-Article 2 | |-Feeds2 | | | |-Article 3 | |-Article 4 ... | |-Feeds487 | | | |-Article 874 | |-Article 875 | |-Article 876 Is there any way for me to simplify the output so i don't have html named Feeds and just make a bulk of articles merged as one. Like this i think : Title |-Article 1 |-Article 2 |-Article 3 ... |-Article 876 |
override parse_feeds() in your recipe. Call the base clas simplementation which will build th enormal list of articles, then manipulate the result as you like.
|
Quote:
|
Sorry to bother you again, may i know any tools that can debug ebook-converter when running so i can see how the populated feed object looks like?
Right now i'm looking at https://manual.calibre-ebook.com/de/...pe.parse_feeds but i still struggling with how the hierarcy implemented. |
You can use simple print statements and their output will be visible when you run ebook-convert
|
Quote:
Thank you! |
| All times are GMT -4. The time now is 10:03 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.