mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-09-01 00:22:09 +00:00
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 4ac25a50ede9526f89e0fa54bbdabe83e8ec72aa. PR #15542.
This commit is contained in:
parent
3301797491
commit
7c8eadfddf
@ -97,15 +97,6 @@ function genHash(string) {
|
|||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTrackerHost(url) {
|
|
||||||
try {
|
|
||||||
return new URL(url).hostname;
|
|
||||||
}
|
|
||||||
catch (error) {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function getSyncMainDataInterval() {
|
function getSyncMainDataInterval() {
|
||||||
return customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval;
|
return customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval;
|
||||||
}
|
}
|
||||||
@ -632,10 +623,9 @@ window.addEvent('load', function() {
|
|||||||
if (response['trackers']) {
|
if (response['trackers']) {
|
||||||
for (const tracker in response['trackers']) {
|
for (const tracker in response['trackers']) {
|
||||||
const torrents = response['trackers'][tracker];
|
const torrents = response['trackers'][tracker];
|
||||||
const host = getTrackerHost(tracker);
|
const hash = genHash(tracker);
|
||||||
const hash = genHash(host);
|
|
||||||
trackerList.set(hash, {
|
trackerList.set(hash, {
|
||||||
url: host,
|
url: tracker,
|
||||||
torrents: torrents
|
torrents: torrents
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user