Skip to content

Commit

Permalink
refactor listing
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Dec 3, 2024
1 parent 8153ac4 commit 8a6f412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/services/web_seeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func (s *WebSeeder) renderTorrentIndex(w http.ResponseWriter, r *http.Request, h
s.addH(h, w)
s.addA("..", w, r)
s.addA(SourceTorrentPath, w, r)
for _, f := range t.Files() {
s.addA(f.Path(), w, r)
for _, f := range t.Info().UpvertedFiles() {
s.addA(strings.Join(append([]string{t.Info().Name}, f.Path...), "/"), w, r)
}
}

Expand Down

0 comments on commit 8a6f412

Please sign in to comment.