From 3f972133779a576b6cc44a6a524a5c4e668e2ec1 Mon Sep 17 00:00:00 2001 From: Oscar Ekeroth Date: Tue, 25 Nov 2025 21:59:04 +0100 Subject: [PATCH] Don't count size of torrents in a tracker label multiple times --- plugins/tracklabels/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tracklabels/init.js b/plugins/tracklabels/init.js index 418df4515..36460b906 100644 --- a/plugins/tracklabels/init.js +++ b/plugins/tracklabels/init.js @@ -12,7 +12,7 @@ plugin.loadLang(); const catlist = theWebUI.categoryList; const ptrackersPanelArgs = [ [['ptrackers_all', {text: theUILang.All, icon: 'all'}]], - [(hash) => theWebUI.torrentTrackerIds.get(hash) ?? []] + [(hash) => [...new Set(theWebUI.torrentTrackerIds.get(hash) ?? [])]] ]; const plabelEntries = catlist.refreshPanel.plabel.bind(catlist);