openzim / gutenberg

Scraper for downloading the entire ebooks repository of project Gutenberg
https://download.kiwix.org/zim/gutenberg
GNU General Public License v3.0
127 stars 37 forks source link

Ebook dead links inserted in HTML #31

Closed kelson42 closed 7 years ago

kelson42 commented 9 years ago

If a book has for example a PDF version, but for any reason the ebook is not available in the dl-cache/static directory, then the HTML still includes it. To avoid any dead link this should not be the case.

An example: With our current code (dcefb5f52eaef5a025c97ce8a1d89b9e10e098b0), for the following book, the PDF is not downloaded and consequently not available, but the HTML generated still provides links/icons pointing to the PDF version. All these links are dead links and should not be inserted. http://www.gutenberg.org/ebooks/11

rgaudin commented 7 years ago

Was a download issue. Fixed along with #32.