question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

renaming chapters doesn't rename all chapters

See original GitHub issue

I have a mb4 file that has chapters title 1-67. I created a chapters.txt with the correct names and used the same times from tone dump. however the last for chapters are not renamed. here is --dry-run preview.

using this command tone tag file.m4b --auto-import=chapters --dry-run

image

this is the relevant section in the chapters.txt file

image

is this a bug or am I missing something?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sandreascommented, Sep 13, 2022

Thank you. I found the problem:

C# has a TimeSpan class that has a method TryParse to parse time strings. This class, as the name states, is used to represent a timespan and also can also be used to represent timespans greater than 24 hours (why not?). However, unfortunately the TryParse method seems to be limited and not to support timespans > 24h (WTF?).

This (currently) results in any chapter after 24h to be skipped, when using the chapters.txt format.

Next steps:

As a workaround you could maybe try the tone.json format to rework your chapters, but I have to check, if this format suffers the same issue.

tone dump --format=json "my-file.m4b" > tone.json
# do modifications
tone tag my-file.m4b --meta-tone-json-file="tone.json" --auto-import="tonejson"
1reaction
sandreascommented, Sep 13, 2022

Should be fixed. Targeted for release v0.1.0. The check for other formats having this issue is not fully done yet, but my first impression is, that other formats should work. Please try the tone.json workaround, if you find the time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating chapter titles : r/PrologueApp
Unfortunately, to get Prologue to read the new chapters, I have to rename the file and have Plex import it as a new...
Read more >
Table of contents after renaming chapters in book document?
I made the patch working for the cases when hyperref is loaded or not. Note that the correct command to redefine is \chaptername...
Read more >
Renaming chapters in an mp4 from a text file
Hi I have an mp4 that is already in Chapters and I want to rename all the chapters from a text file (or...
Read more >
\renewcommand{\chaptername}{} does NOT work -- why?
I am trying to get rid of (or rename) the "Chapter x" string before names of chapters. As far as I know, the...
Read more >
Renaming and resetting Chapter in LaTeX
I have two questions in LaTeX: How to reset the chapter counter to 1 or to set it to any other number? How...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found