WebToEpub icon indicating copy to clipboard operation
WebToEpub copied to clipboard

Autofill range of chapters to the title

Open DicerX opened this issue 4 years ago • 3 comments

Describe the solution you'd like

I always have to add the chapters range to the title, I thought I might as well request it and see if this can be added to WebtoEpub in the future.

Examples:

Current title:

Digging to Survive: I Can See Hints

Title autofill:

Digging to Survive: I Can See Hints, Chapter 1 - Chapter 506

Describe alternatives you've considered

Using my hands to slowly type the chapters range.

DicerX avatar Oct 07 '21 09:10 DicerX

@DicerX That's not a bad idea. However, I'm not sure this can be done reliably (and easily) in all cases. My thought is, scan the titles of the first and last chapters for a number. If both have numbers, and first is less than second, add suffix like .c0001-0506 Would that work for you?

Actually, that's the file name, not the Title.

dteviot avatar Oct 07 '21 18:10 dteviot

Hmmm, if you replace it with "Chapter 0001 - 0506" that would be much better. I know this sounds a little picky and stuff, but honestly, my whole library is arranged like so.

But this is just a suggestion for when you want a drop a significant update, so please do take your time and throw this into the to-do list without burdening yourself. I still recall that you're spending way too much time on this project, and I honestly don't want to lose you.

DicerX avatar Oct 07 '21 19:10 DicerX

Mine are arranged using .cxxxx-yyyy

Turns out there's another issue. Title and filename are computed when ToC is first loaded. If you then adjust the chapters to fetch (say, just get the new chapters) need to recalc the title & filename.

dteviot avatar Oct 08 '21 00:10 dteviot