change file id from 0

This commit is contained in:
YouROK
2020-12-25 11:55:16 +03:00
parent 8462c368ad
commit 2980f1a283

View File

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