Browse Source

Revert "WebUI: group trackers by hostname"

This functionality wasn't ever correctly implemented and couldn't be
done without considerable effort, so revert it for now.
This reverts commit 4ac25a50ed.
PR #15542.
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
7c8eadfddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      src/webui/www/private/scripts/client.js

14
src/webui/www/private/scripts/client.js

@ -97,15 +97,6 @@ function genHash(string) { @@ -97,15 +97,6 @@ function genHash(string) {
return hash;
}
function getTrackerHost(url) {
try {
return new URL(url).hostname;
}
catch (error) {
return url;
}
}
function getSyncMainDataInterval() {
return customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval;
}
@ -632,10 +623,9 @@ window.addEvent('load', function() { @@ -632,10 +623,9 @@ window.addEvent('load', function() {
if (response['trackers']) {
for (const tracker in response['trackers']) {
const torrents = response['trackers'][tracker];
const host = getTrackerHost(tracker);
const hash = genHash(host);
const hash = genHash(tracker);
trackerList.set(hash, {
url: host,
url: tracker,
torrents: torrents
});
}

Loading…
Cancel
Save