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
This isn´t an issue per se; however, I'm confused as to how do I explicitly add/write the CTOC additional field after writing all chapters.
Environment
ATL version 2.3
Windows 10
Details
The ID3v2 chapters that get written with the ATLDOTNET library are FLAWLESS! However, some podcast clients like Overcast that do read them, cannot navigate through them. The only difference I've found so far in the ID3v2 tags from my chapter-enabled files and others out there is the CTOC Additional Field that lists the order of said chapters. The files with CTOC information in the ID3v2 tag can be navigated in podcast clients like Overcast.
I tried to no avail, thanks to my novice coding skills, to explicitly add a KeyValuePair<string, string>("CTOC", "toc");into theTag.AdditionalFields
But looking through the ATLDOTNET code I found that you've already added immense support to CTOC in ATL.AudioData.IO.ID3v2.writeChapters
I'd just like to know how to write the CTOC additional field, I thought that either expanding on the Chapter code snippet or creating a new one specifically for CTOC would be very much appreciated.
This was an unintended behaviour, since -as you saw-, ATL is fully capable of generating a valid CTOC frame on its own. It is now done by default when calling UpdateTagInFile, without you having to add anything to your code.
Tested in commit 5c83d0423478d5af954e9d99c87e4e71a3b835f5 the CTOC Additional Field is now written in the ID3v2 tag when UpdateTagFile is called! Cheers!
The problem
This isn´t an issue per se; however, I'm confused as to how do I explicitly add/write the CTOC additional field after writing all chapters.
Environment
Details
The ID3v2 chapters that get written with the ATLDOTNET library are FLAWLESS! However, some podcast clients like Overcast that do read them, cannot navigate through them. The only difference I've found so far in the ID3v2 tags from my chapter-enabled files and others out there is the CTOC Additional Field that lists the order of said chapters. The files with CTOC information in the ID3v2 tag can be navigated in podcast clients like Overcast.
I tried to no avail, thanks to my novice coding skills, to explicitly add a
KeyValuePair<string, string>("CTOC", "toc");
intotheTag.AdditionalFields
But looking through the ATLDOTNET code I found that you've already added immense support to CTOC in
ATL.AudioData.IO.ID3v2.writeChapters
I'd just like to know how to write the CTOC additional field, I thought that either expanding on the Chapter code snippet or creating a new one specifically for CTOC would be very much appreciated.
Code To Reproduce Issue
thisChapter = new ATL.ChapterInfo();
thisChapter.UniqueID = chp0;
thisChapter.Title = One;
thisChapter.StartTime = 0;
thisChapter.EndTime = 10000;
theTag.Chapters.Add(thisChapter);
thisChapter.UniqueID = chp1;
thisChapter.Title = Two;
thisChapter.StartTime = 10000;
thisChapter.EndTime = 20000;
theTag.Chapters.Add(thisChapter);
theTag.AdditionalFields.AddCTOC();
Persist the chapters and CTOC in the file:
theFile.UpdateTagInFile(theTag, MetaDataIOFactory.TAG_ID3V2);
{[CTOC, toc
Key = "CTOC"
Value = "toc\0\u0003\u0006chp0\0chp1\0TIT2\0\0\0%\0\0\u0001ÿþ"
Thank you so much!
The text was updated successfully, but these errors were encountered: