Git Product home page Git Product logo

Comments (1)

DreamCobbler avatar DreamCobbler commented on July 23, 2024

I've partially fixed the issue.

The problem with Nifty is that it has no standard story format, i.e. the metadata of the story don't have a guaranteed structure. Some - most - stories have three lines at the start, in the following format:

Date: Tue, 12 Jul 2011 08:35:17 +0200

From: Amy Redek [email protected]

Subject: Guinea Pig II. Chapter Seven

(Example coming from the Guinea Pig story.)

Date in the first line, author's name and e-mail in the next, the title in the third.

Some other stories use a similar format, but without the author's name, like that:

Date: Thu, 12 Dec 2002 18:48:18 -0500

From: [email protected]

Subject: Locker Room: Part 5

(Example from Locker Room.)

Some other stories seem to ignore this format altogether.

There are also HTML-formatted stories, some of which don't provide any metadata (which f-dl simply requires to have), or don't provide them in a consistent way.

So, in short, the support for Nifty is and will be rather shaky. I've implemented support for a wider range of author fields (i.e. just a name or just an e-mail), so some stories that weren't downloadable before should be processed just fine in 1.8.3. This ought to fix some instances of the first error.

The second error should be fixed in some cases as well. Tables of content of some stories didn't match the expected layout; I've expanded the range of acceptable formats, i.e. f-dl now looks in a few different places of the tag soup for a list of chapters. Still, I can't quite guarantee there will be no issues like that in the future.

from fiction-dl.

Related Issues (20)

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.