mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
parent
d9cf189ef6
commit
4ac25a50ed
1 changed files with 7 additions and 2 deletions
|
@ -96,6 +96,10 @@ function genHash(string) {
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getTrackerHost(url) {
|
||||||
|
return new URL(url).hostname;
|
||||||
|
}
|
||||||
|
|
||||||
function getSyncMainDataInterval() {
|
function getSyncMainDataInterval() {
|
||||||
return customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval;
|
return customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval;
|
||||||
}
|
}
|
||||||
|
@ -622,9 +626,10 @@ 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 hash = genHash(tracker);
|
const host = getTrackerHost(tracker);
|
||||||
|
const hash = genHash(host);
|
||||||
trackerList.set(hash, {
|
trackerList.set(hash, {
|
||||||
url: tracker,
|
url: host,
|
||||||
torrents: torrents
|
torrents: torrents
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue