mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 07:21:56 +00:00
max conn option
This commit is contained in:
parent
4278273b07
commit
ea850b3f29
4 changed files with 13 additions and 2 deletions
|
|
@ -10,6 +10,9 @@
|
||||||
.cover-img {
|
.cover-img {
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
input:invalid{
|
||||||
|
box-shadow: 0 0 0 0.2rem var(--danger-color) !important
|
||||||
|
}
|
||||||
|
|
||||||
::-webkit-inner-spin-button {
|
::-webkit-inner-spin-button {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
|
||||||
|
|
@ -356,6 +356,14 @@
|
||||||
Erai-raws</option>
|
Erai-raws</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="input-group w-200 mb-10" data-toggle="tooltip" data-placement="top"
|
||||||
|
data-title="How Many Max Peers To Connect To, Higher Numbers Mean Higher Speeds And More CPU Usage">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text">Max Connections</span>
|
||||||
|
</div>
|
||||||
|
<input id="torrent6" type="number" value="55" min="10" step="5" max="255"
|
||||||
|
class="form-control text-right">
|
||||||
|
</div>
|
||||||
<div class="custom-switch mb-10" data-toggle="tooltip" data-placement="top" data-title="Skips The Torrent Selection Popup, Might Lead To Unwanted Videos Being
|
<div class="custom-switch mb-10" data-toggle="tooltip" data-placement="top" data-title="Skips The Torrent Selection Popup, Might Lead To Unwanted Videos Being
|
||||||
Played">
|
Played">
|
||||||
<input type="checkbox" id="torrent2">
|
<input type="checkbox" id="torrent2">
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
const settingsElements = [
|
const settingsElements = [
|
||||||
player1, player2, player3, player4, player5, player6, player7, player8, subtitle1, subtitle2, subtitle3, torrent1, torrent2, torrent3, torrent4, torrent5, other1, other2
|
player1, player2, player3, player4, player5, player6, player7, player8, subtitle1, subtitle2, subtitle3, torrent1, torrent2, torrent3, torrent4, torrent5, torrent6, other1, other2
|
||||||
]
|
]
|
||||||
let settings = {}
|
let settings = {}
|
||||||
function restoreDefaults() {
|
function restoreDefaults() {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
let client = new WebTorrent()
|
let client = new WebTorrent({maxConns: settings.torrent6})
|
||||||
window.onbeforeunload = () => {
|
window.onbeforeunload = () => {
|
||||||
client.torrents[0] ? client.torrents[0].store.destroy() : ""
|
client.torrents[0] ? client.torrents[0].store.destroy() : ""
|
||||||
client.torrents[0] ? client.torrents[0].destroy() : ""
|
client.torrents[0] ? client.torrents[0].destroy() : ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue