From 43a1571cd23b2d9c0ea8ef2c639236f43ca6e8f9 Mon Sep 17 00:00:00 2001 From: Roger Pales Date: Wed, 17 May 2023 16:02:50 +0200 Subject: [PATCH] fixed write FORCED attribute unquoted. E.g. FORCED=NO --- writer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/writer.go b/writer.go index b64c8cf9..bc7b0614 100644 --- a/writer.go +++ b/writer.go @@ -136,9 +136,8 @@ func (p *MasterPlaylist) Encode() *bytes.Buffer { p.buf.WriteRune('"') } if alt.Forced != "" { - p.buf.WriteString(",FORCED=\"") + p.buf.WriteString(",FORCED=") p.buf.WriteString(alt.Forced) - p.buf.WriteRune('"') } if alt.Characteristics != "" { p.buf.WriteString(",CHARACTERISTICS=\"")