Comments (1)
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)
- installation error: Could not find a version HOT 2
- Root error? HOT 1
- Images are not properly added in LOCAL TEXT STORIES.
- Feature Request: Better way to process local text stories
- Feature Request: Nifty.org HTML chapters. HOT 1
- Story has 144 threadmarks HOT 1
- Not working for the new version of literotica HOT 1
- Cloudflare challenge failure HOT 2
- Disable text features?
- Add site Rtenzo.net/rtenzo
- Unable to download due to author name
- Unable to use fiction-dl, pops out an error HOT 1
- [Feature] AO3 series support HOT 1
- [Improvement] Use AO3 official downloads. HOT 1
- AddToPATH, GetPackageDirectory HOT 1
- I had to install dreamy-utilities manually to get it working HOT 1
- Can't add gif images HOT 1
- Image duplicates
- Entire program terminates because of a error in one link. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fiction-dl.