From ab779f9668ff4582fc2ee836e002bbbc6b59fe99 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Fri, 25 Dec 2020 16:16:59 +0300 Subject: [PATCH] revert id +1 in web 0 id is undefined --- src/server/torr/torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/torr/torrent.go b/src/server/torr/torrent.go index 5175269..7463ca1 100644 --- a/src/server/torr/torrent.go +++ b/src/server/torr/torrent.go @@ -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(), })