revert id +1 in web 0 id is undefined

This commit is contained in:
YouROK
2020-12-25 16:16:59 +03:00
parent 6d6f598fd7
commit ab779f9668

View File

@@ -373,7 +373,7 @@ func (t *Torrent) Status() *state.TorrentStatus {
})
for i, f := range files {
st.FileStats = append(st.FileStats, &state.TorrentFileStat{
Id: i,
Id: i + 1, // in web id 0 is undefined
Path: f.Path(),
Length: f.Length(),
})