Closed StefanDorschu closed 1 year ago
@HabelStefan
Unfortunately this is not possible by a simple step or parameter... However, with tone
you could write your own little JavaScript tagger, that should do what you like:
2 . Create a file reindexChapters.js
:
// reindexChapters.js
function reindexChapters(metadata, parameters) {
var count = metadata.Chapters.Count;
var newChapters = [];
console.log("found " + count + " chapters to reindex");
for(var i=0;i<count;i++) {
metadata.Chapters[i].Title = "Chapter " + (i+1);
}
}
tone.RegisterTagger("reindexChapters");
Run the following command to check the results are to your liking
tone tag "my-audiobook.m4b" --taggers="reindexChapters" --script="reindexChapters.js" --dry-run
Run the command without --dry-run
to actually perform the changes
tone tag "my-audiobook.m4b" --taggers="reindexChapters" --script="reindexChapters.js"
Thank you, give it a try !
Works as expected. How can i run it for every file within a directory?
Should work... just try with --dry-run
to check if it works as expected:
tone tag "./my-audiobook-folder" --taggers="reindexChapters" --script="reindexChapters.js" --dry-run
Closed due to no further feedback. Feel free to reopen.
I'm running into an issue which large audiobooks (do know if its the file size (all are bigger than 1GB) or the chapter number).
found 563 chapters to reindex
Error: Object reference not set to an instance of an object.
Any ideas?
Best regards,
Stefan
I would like to rename the chapters instead of using the original file names.
Simple as
Chapter 1 Chapter 2 Chapter 3
Is that possible?