mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -06:00
@@ -100,19 +100,21 @@
|
||||
return;
|
||||
}
|
||||
|
||||
new Request({
|
||||
url: "api/v2/torrents/setShareLimits",
|
||||
method: "post",
|
||||
data: {
|
||||
hashes: hashesList.join("|"),
|
||||
ratioLimit: ratioLimitValue,
|
||||
seedingTimeLimit: seedingTimeLimitValue,
|
||||
inactiveSeedingTimeLimit: inactiveSeedingTimeLimitValue
|
||||
},
|
||||
onComplete: () => {
|
||||
fetch("api/v2/torrents/setShareLimits", {
|
||||
method: "POST",
|
||||
body: new URLSearchParams({
|
||||
"hashes": hashesList.join("|"),
|
||||
"ratioLimit": ratioLimitValue,
|
||||
"seedingTimeLimit": seedingTimeLimitValue,
|
||||
"inactiveSeedingTimeLimit": inactiveSeedingTimeLimitValue
|
||||
})
|
||||
})
|
||||
.then(async (response) => {
|
||||
if (!response.ok)
|
||||
return;
|
||||
|
||||
window.parent.qBittorrent.Client.closeFrameWindow(window);
|
||||
}
|
||||
}).send();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user