ascherkus / go-id3 Goto Github PK
View Code? Open in Web Editor NEWID3 parsing library for go
License: Apache License 2.0
ID3 parsing library for go
License: Apache License 2.0
Hi, Thanks for your go-id3
How to get mp3 comment?
HI,
i found 2 unhandled panics in the library below which causes a crash in the program using the library when i encounter malformed conditions like weird encodings:
(a) id3.go, line 78: panic(fmt.Sprintf("Unrecognized ID3v2 version: %d", file.Header.Version))
(b) util.go, line 156: panic(err)
My current retrofit for the Read function is to add a defer with a recover & return nil instead of *File. However, i believe a better solution would be to return both a File & a more descriptive error object
func Read(reader io.Reader) (retfil *File) {
defer func() {
if r := recover(); r != nil {
retfil = nil
}
}()
.....
.....
}
For a newbie, it would be a problem to Install. Please add current method of installation i.e.
go get github.com/ascherkus/go-id3/src/id3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.