mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 03:27:39 +08:00
chore: add xml header
This commit is contained in:
@@ -66,7 +66,7 @@ func (c *Client) writeNfoFile(historyId int) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "xml marshal")
|
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
|
} else if md.MediaType == media.MediaTypeMovie { //movie.nfo
|
||||||
@@ -101,7 +101,7 @@ func (c *Client) writeNfoFile(historyId int) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "xml marshal")
|
return errors.Wrap(err, "xml marshal")
|
||||||
}
|
}
|
||||||
return st.WriteFile(nfoPath, data)
|
return st.WriteFile(nfoPath, []byte(xml.Header+string(data)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user