p0n1 / epub_to_audiobook

EPUB to audiobook converter, optimized for Audiobookshelf
MIT License
1.16k stars 119 forks source link

Better chapter title handling #47

Open p0n1 opened 9 months ago

p0n1 commented 9 months ago

I'm a bit concerned about the possibility that items labeled as h1 h2 h3 could be non section title. However, it's not a big issue, and if there is indeed a problem, we can fix it later.

_Originally posted by @p0n1 in https://github.com/p0n1/epub_to_audiobook/pull/30#discussion_r1448832503_

I ran into a book with single numbers in h1 tag. So, the chapter titles would be just something like 01, 02... I prefer to keep more context/strings in title so I can know more about each chapter audio file.

GamerClassN7 commented 9 months ago

in my case chapters are in 2 lines, would be possible to parse both lines not just "DVA" ?

image

GamerClassN7 commented 9 months ago

also in my case Audio-bookshelf detect correct order of chapters but, conversion container i scrambling the order. For example upper mentioned book is scrambled in order

0 chaper 1 2 prolong chapter 0 2 chapter 5

Could this be due to script not parsing full chapter names ?

GamerClassN7 commented 8 months ago

also in my case Audio-bookshelf detect correct order of chapters but, conversion container i scrambling the order. For example upper mentioned book is scrambled in order

0 chaper 1 2 prolong chapter 0 2 chapter 5

Could this be due to script not parsing full chapter names ?

posibbly bound exactly same error https://github.com/aerkalov/ebooklib/issues/149

self.book.get_items_of_type(ebooklib.ITEM_DOCUMENT)] do not return chapters in correct order thy need to be sorted somehow

GamerClassN7 commented 8 months ago

@p0n1 Sorry for the ping but would be possible to add some preview of chaperd in order thy will be generated ? i dont know if it affect only my language but every time i generate book in my language chapters are in incorrect order. it is probably also connected to this: https://github.com/p0n1/epub_to_audiobook/issues/57

GamerClassN7 commented 5 months ago

@p0n1 Sorry for the ping but would be possible to add some preview of chaperd in order thy will be generated ? i dont know if it affect only my language but every time i generate book in my language chapters are in incorrect order. it is probably also connected to this: https://github.com/p0n1/epub_to_audiobook/issues/57

Hi @p0n1, Any news on better handling of chapter order most of book I converted, need to be sorted manually after generation and come of them have more than 30 files, sorting order of books by spine part of EPUB would be good addition, not just for me but for everyone:)