View Single Post
Old 04-09-2015, 11:31 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,418
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Downloaded articles are named according to a particular scheme ass feed_n/article_n/index.html

You need to convert your internal links to refer to those names. There is no easy way to do that, since the recipe download system is not designed for it. Essentially, you need to override create_opf() in your recipe class to store a mapping of article.orig_url -> filename

Then implement postprocess_book() to use that mapping to replace the links in the downloaded articles using the previously stored mapping.
kovidgoyal is offline   Reply With Quote