Closed mjneil closed 5 years ago
Summary of changes in latest commits:
writer_test.go
to increase coverageCustomTag
interface into CustomTag
and CustomDecoder
. I thought that this made the code a little easier to understand and helped with writing the tests. I welcome any feedback on how these interfaces are implemented so we have an implementation everyone is happy with.Thanks for the review, I've updated with comments on exports.
@leikao have you had a chance to take another look at this?
@leikao I updated my PR to do the custom tag parsing first before other tags to support the ability to custom parse already existing tags without conflicts
This would be a great addition to the m3u8 library. The diff looks very clean and well tested. :+1: from me.
@leikao What do you think?
@leikao any update on this?
Thank you for contributing.
Thanks @leikao I appreciate your time working with me on this. Would you be able to also release a new version tag with these changes please?
A new version v0.11.1
was made @mjneil
Hello, thanks for an awesome m3u8 project. We came across the need to read and write custom tags to m3u8 so I've implemented it through an interface in my fork, but would love to get this upstream so we don't have to use a fork. I've implemented this in a way that should allow for the parsing of any format as the user will have to implement the interface. This way we do not have to pollute the source code with parsing/writing for non-standard tags that only a few users have need for or that cant be made open source. I've also included example template files for how to implement your own custom tag readers and writers.
I noticed there is an issue as well that this will help resolve #82