From 8a6f412333edfde711663b5381da4ae353635fe1 Mon Sep 17 00:00:00 2001 From: Pavel Tatarskiy Date: Tue, 3 Dec 2024 21:14:37 +0300 Subject: [PATCH] refactor listing --- server/services/web_seeder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/services/web_seeder.go b/server/services/web_seeder.go index 460b7e7..377ee71 100644 --- a/server/services/web_seeder.go +++ b/server/services/web_seeder.go @@ -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) } }