Giter VIP home page Giter VIP logo

daily_book_go's People

Contributors

renderorange avatar

Watchers

 avatar  avatar

daily_book_go's Issues

Rework catalog generation and filename download

It appears project gutenberg is no longer creating ASCII encoded ebooks.

The catalog updates for the last long while have only been removing ASCII encoded ebooks from their files cache. It appears they're now not releasing their text formatted books as ASCII but as UTF-8. UTF-8 encoding isn't a problem in itself, but the filenames are different, so the logic needs to be reworked.

For example:
https://www.gutenberg.org/files/9897/9897.txt - ASCII
https://www.gutenberg.org/files/1089/1089-0.txt - UTF-8

The txt filename contains -0 to signify UTF-8, from what I can gather.

To allow for both ASCII and UTF-8 book filenames, catalog.bash should store the book filename in the catalog, rather than the ebook number. Or, perhaps a CSV format with ebook number first, and filename second. This will allow for quote.go to still easily build the mirror cache link path, as well as the filename to download for both ASCII and UTF-8.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.