You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some audiobooks that consists of two .m4b files. Each file contains many chapters. Audiobookshelf detects and scans them correctly, but in the chapter list for the book (in audiobookshelf) the first chapter of file 2 is missing. When playing the book in audiobookshelf, all chapters from file 1 are correct, but the first chapter of file 2 has the name of the second chapter in file 2.
Screenshots probably explain it better:
File 2 metadata:
But in audiobookshelf:
As you can see, "Chapter 30 - Beyond the Oak" is missing in audiobookshelf -- but if I play the book and skip to what audiobookshelf thinks is "Chapter 31 - Assurances" it starts playing at the beginning of file 2, at "Chapter 30 - Beyond the Oak". And all subsequent chapter indexes are now wrong.
I haven't looked at any code, but I suspect an "off-by-1" type of error somewhere, since playing starts at the beginning of the file, but uses chapter metadata starting at the second chapter (in file 2).
Apart from this issue audiobookshelf appears to parse/scan the .m4b files correctly, thus it appears to be a bug in audiobookshelf.
No errors in the logs, even on Debug log level.
Books consisting of only one .m4b file has no chapter issues.
Steps to reproduce the issue
Add an audiobook in .m4b format, with at least two tracks. Each track must probably contain more than one chapter and metadata about the chapters.
Observe that the first chapter of the second track isn't listed in audiobookshelf
Observe that playing the book starting at the first chapter in the second file will start playing at the beginning of the file, but the chapter metadata is wrong. Skipping to next chapter goes to the wrong timestamp.
Audiobookshelf version
v2.1.0
How are you running audiobookshelf?
Docker
The text was updated successfully, but these errors were encountered:
It was checking if there was already a chapter with the same start time and ignoring it. This was causing the 0:00 start time in the second book to get ignored. Fixed now.
Describe the issue
I have some audiobooks that consists of two .m4b files. Each file contains many chapters. Audiobookshelf detects and scans them correctly, but in the chapter list for the book (in audiobookshelf) the first chapter of file 2 is missing. When playing the book in audiobookshelf, all chapters from file 1 are correct, but the first chapter of file 2 has the name of the second chapter in file 2.
Screenshots probably explain it better:
File 2 metadata:
But in audiobookshelf:
As you can see, "Chapter 30 - Beyond the Oak" is missing in audiobookshelf -- but if I play the book and skip to what audiobookshelf thinks is "Chapter 31 - Assurances" it starts playing at the beginning of file 2, at "Chapter 30 - Beyond the Oak". And all subsequent chapter indexes are now wrong.
I haven't looked at any code, but I suspect an "off-by-1" type of error somewhere, since playing starts at the beginning of the file, but uses chapter metadata starting at the second chapter (in file 2).
Apart from this issue audiobookshelf appears to parse/scan the .m4b files correctly, thus it appears to be a bug in audiobookshelf.
No errors in the logs, even on Debug log level.
Books consisting of only one .m4b file has no chapter issues.
Steps to reproduce the issue
Audiobookshelf version
v2.1.0
How are you running audiobookshelf?
Docker
The text was updated successfully, but these errors were encountered: