mattttvaughn / chronicle

GNU General Public License v3.0
219 stars 60 forks source link

Chapter metadata not working for books with more than one file. #76

Open JasonPart opened 2 years ago

JasonPart commented 2 years ago

I am attempting to play an audiobook (Lord of the Rings) which has had its files broken up in to 6 total pieces (one file for each book). The Plex server presents these 6 files as a single album that contains 6 tracks, with each track ranging from 9-13 hours in length. When I open up the book in Chronicle, it seems to append all 6 tracks together into a single timeline of about 66 hours, let's call this the unified timeline.

The issue has only presented itself upon beginning the second book. All of the chapters are presented correctly within the Chronicle interface, but whenever I select a chapter in the second book, playback begins somewhere during the first book.

I examined the ogg chapter metadata within each of the files, and the timestamps that are given for the chapter begin and end times are done so for the time within each individual file. For instance, book 2 chapter 1 starts at 0 seconds and ends at 4052 seconds. Book 2 chapter 2 starts at 4052 seconds and ends at 11510 seconds. When I attempt to select book 2 chapter 2, playback will instead start at 4052 seconds in to the unified timeline, and not the timeline for that specific file.

This also effects things like resuming playback, and even pausing. I am able to scroll the timeline through the end of the first book, and the second book will being playing as normal, but if I pause the playback at that point, it will skip back to a previous point in the audio.