Comments (3)
Depends on the site. do_update_hook
is only implemented for FimF and OTW sites(ie AO3), and it's basically deprecated for OTW sites since 2015. So I assume you're asking about a FimF story.
Story URL?
from fanficfare.
Fimfiction chapter URLs include the chapter title and index, so I believe chapters shifted in index by insertion or deletion are handled by the old chapter map similarly to AO3. In this case only in-place edits to chapters earlier in the list than the latest update would be missed.
Syosetu has only sequential indices in the URL, so the old chapter map would not be able to clean up after insertions or deletions. In this case you would get dropped or duplicated chapters with the described behavior, 'discard indices from the latest update'.
I see now that the update hook is called after the old chapter map is given to the adapter, but the only old metadata always accessible in the update hook (the log page is optional) is chapter's title, URL, and body text. But I also see now that the update hook is not always run, so access to the old chapter map doesn't have much point to me.
The only way I can see to correctly pick up updated chapters from syosetu is to give FFF chapter URLs modified to act as a unique key, by appending a query string constructed from the chapter title, publication date, and edit date.
from fanficfare.
This is a known limitation. If authors change the text of existing chapters, there's no way for FFF to know that in most cases. It's a relatively rare corner case, for what I've seen.
The answer, generally, is to overwrite instead of update in those cases. That's really the only solution that can address the problem for all sites.
I'm closing this since it isn't an issue with the software so much as a discussion of a future possible adapter.
from fanficfare.
Related Issues (20)
- Fanfiction.net stories give a HTTP error each time HOT 1
- [BUG] Error Updating Metadata HOT 1
- fanficfare linux vs windows speed difference HOT 1
- Errors fetching information on the plugin now generate modal error boxes instead of just reporting on the job log like before HOT 1
- Error when downloading from deviant art with login credentials HOT 21
- Spacebattles Threadmarks Pagination Update HOT 1
- [Question] For the Browser Cache method: only check first and last chapter HOT 1
- browser cache path for fanfiction.net doesn't work HOT 9
- Update AO3 anthology not working when a series URL is used HOT 8
- Any way to improve tables on Kindle? HOT 3
- Literotica changes after site UI revamp HOT 35
- Existing story produces 'Story does not exist' error HOT 1
- [literotica.com] Download all Story from User HOT 3
- Ficbook.net categories aren't showing up
- QuestionableQuesting.com Site Changed HOT 4
- deviantart.com probably needs force login option HOT 8
- How to download Wattpad stories from Calibre HOT 16
- [Feature Request] Action Chains integration HOT 5
- Can't download stories from Wattpad, it's an error HOT 1
- literotica.com: Get Story URLs from Web Page with 'Show More' author list 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 fanficfare.