View Single Post
Old 09-15-2023, 11:20 AM   #8908
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by DirCat View Post
Would it be possible to have a combined "Look for new chapters" ("Update EPUB if New Chapters") and "Look if the fic is newer than what has been downloaded" ("Overwrite if Newer") into one option?
Restating the two edge cases you are asking about:
  1. Author updates without adding a new chapter. Could have a) changed an existing chapter, or b) replaced an existing chapter indicated by different chapter URL.
  2. Author adds a chapter without dateUpdated changing.
There's two differences between Update EPUB if New Chapters and Overwrite if Newer.
  • How they decide whether to run or not: Update uses increased chapter count only, Overwrite if Newer uses dateUpdated compared to the file system mtime(last modified) of the selected ebook type.
  • What they do when they run: Update downloads new chapters only, Overwrite if Newer downloads all chapters again.
Comparing chapter number for Overwrite if Newer doesn't work--it's intended for non-EPUB formats and FFF can only read EPUBs for chapter number. No, a chapter column doesn't work, not everyone has one.

Looking at dateUpdated for Update EPUB if New Chapters is possible, but doesn't help in the case of author updating an existing chapter because that chapter in EPUB will not be replaced unless the chapter URL changed.

Making one mode that sometimes updates and sometimes overwrites is, IMO, a bad idea because:
  1. Users expecting update will be surprised when their manual edits to existing chapters disappear or downloads take forever.
  2. Users expecting overwrite will be surprised when old chapters don't reflect changes on the site.
tl;dr: If you don't trust dateUpdated or chapter number, don't you basically end up at "Overwrite Always" mode?

I am in a mood for lists today, apparently.
JimmXinu is offline   Reply With Quote