chore: add xml header

This commit is contained in:
Simon Ding
2025-01-19 15:44:05 +08:00
parent 842f8fae09
commit a8b6661ec9

View File

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