Skip to content

Commit a8b6661

Browse files
committed
chore: add xml header
1 parent 842f8fa commit a8b6661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/core/integration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (c *Client) writeNfoFile(historyId int) error {
6666
if err != nil {
6767
return errors.Wrap(err, "xml marshal")
6868
}
69-
return st.WriteFile(nfoPath, data)
69+
return st.WriteFile(nfoPath, []byte(xml.Header+string(data)))
7070
}
7171

7272
} else if md.MediaType == media.MediaTypeMovie { //movie.nfo
@@ -101,7 +101,7 @@ func (c *Client) writeNfoFile(historyId int) error {
101101
if err != nil {
102102
return errors.Wrap(err, "xml marshal")
103103
}
104-
return st.WriteFile(nfoPath, data)
104+
return st.WriteFile(nfoPath, []byte(xml.Header+string(data)))
105105
}
106106
}
107107
return nil

0 commit comments

Comments
 (0)