diff --git a/pkg/oggtag/oggtag.go b/pkg/oggtag/oggtag.go index 5eb3175..df45911 100644 --- a/pkg/oggtag/oggtag.go +++ b/pkg/oggtag/oggtag.go @@ -74,7 +74,9 @@ func (of *OggFile) GetTag(tag string) string { tagIdx := bytes.Index(of.bufHead, append([]byte{0, 0, 0}, (tag+"=")...)) if tagIdx == -1 { if tagIdx = bytes.Index(of.bufHead, append([]byte{0, 0, 0}, (strings.ToUpper(tag)+"=")...)); tagIdx == -1 { - return "" + if tagIdx = bytes.Index(of.bufHead, append([]byte{0, 0, 0}, (strings.Title(tag)+"=")...)); tagIdx == -1 { + return "" + } } } tagIdx += 3