Merge pull request #599 from rosenbjerg/Delegate-WithChapter-overload-with-double-argument-to-long-overload-to-reduce-code

Delegate to WithChapter with long argument overload
This commit is contained in:
Malte Rosenbjerg 2025-10-27 21:23:58 +01:00 committed by GitHub
commit 55d526ce92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,8 +26,7 @@ public class FFMetadataBuilder
public FFMetadataBuilder WithChapter(string title, double durationSeconds)
{
Chapters.Add(new FFMetadataChapter(title, Convert.ToInt64(durationSeconds * 1000)));
return this;
return WithChapter(title, Convert.ToInt64(durationSeconds * 1000));
}
public string GetMetadataFileContent()