mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
parent
c034cb5985
commit
08f33d7e9e
@ -97,8 +97,13 @@ function genHash(string) {
|
||||
}
|
||||
|
||||
function getTrackerHost(url) {
|
||||
try {
|
||||
return new URL(url).hostname;
|
||||
}
|
||||
catch (error) {
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
function getSyncMainDataInterval() {
|
||||
return customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval;
|
||||
|
Loading…
x
Reference in New Issue
Block a user