Skip to content

Commit

Permalink
fix epg for Kodi player (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
anbuchelva authored Aug 25, 2024
1 parent dd26886 commit 494f379
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/epg/epg.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ func GenXMLGz(filename string) error {
if err != nil {
return err
}
// Add XML header
xmlHeader := `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tv SYSTEM "http://www.w3.org/2006/05/tv">`
xml = append([]byte(xmlHeader), xml...)
// write to file
f, err := os.Create(filename)
if err != nil {
Expand Down

0 comments on commit 494f379

Please sign in to comment.