| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 4 
				Karma: 10 
				Join Date: Jan 2019 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 4 
				Karma: 10 
				Join Date: Jan 2019 
				
				
				
				Device: none 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 4 
				Karma: 10 
				Join Date: Jan 2019 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You can use simple print statements and their output will be visible when you run ebook-convert
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 4 
				Karma: 10 
				Join Date: Jan 2019 
				
				
				
				Device: none 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Issue with printable TOC in PDF output | dma_k | Conversion | 2 | 08-19-2016 06:36 PM | 
| nested toc appears flattened on kindle | MrNiceGaius | Conversion | 2 | 09-19-2013 09:51 AM | 
| ePUBs multilevel TOC gets flattened in conversion to MOBI | damnated | Conversion | 14 | 09-02-2011 03:25 PM | 
| bookmarks in PDF input, and TOC in output | pimpoum | Calibre | 3 | 12-14-2010 01:21 PM | 
| TOC location of Calibre recipe ebook output | tylau0 | Calibre | 8 | 11-06-2010 10:48 AM |