@nitrimandylis/flick 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flick.js +3 -3
- package/man/flick.1 +1 -1
- package/package.json +1 -1
package/dist/flick.js
CHANGED
|
@@ -1169,7 +1169,7 @@ class Rqbit {
|
|
|
1169
1169
|
if (await rqbitUp())
|
|
1170
1170
|
return;
|
|
1171
1171
|
mkdirSync4(FILMS_DIR, { recursive: true });
|
|
1172
|
-
this.child = spawn3("rqbit", ["--http-api-listen-addr", "127.0.0.1:3041", "--listen-port", "4247", "--disable-dht-persistence", "server", "start", "--disable-persistence", FILMS_DIR], { stdio: "ignore" });
|
|
1172
|
+
this.child = spawn3("rqbit", ["--http-api-listen-addr", "127.0.0.1:3041", "--listen-port", "4247", "--ratelimit-upload", "1", "--disable-dht-persistence", "server", "start", "--disable-persistence", FILMS_DIR], { stdio: "ignore" });
|
|
1173
1173
|
for (let i = 0;i < 25; i++) {
|
|
1174
1174
|
if (await rqbitUp())
|
|
1175
1175
|
return;
|
|
@@ -1241,7 +1241,7 @@ class Webtorrent {
|
|
|
1241
1241
|
} catch {
|
|
1242
1242
|
throw new Error("the built-in engine's native parts aren't installed. Install rqbit (brew install rqbit), or reinstall flick with npm, or run: bun pm -g trust --all");
|
|
1243
1243
|
}
|
|
1244
|
-
this.client = new WebTorrent;
|
|
1244
|
+
this.client = new WebTorrent({ uploadLimit: 0 });
|
|
1245
1245
|
const server = this.client.createServer({ hostname: "127.0.0.1" });
|
|
1246
1246
|
await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve));
|
|
1247
1247
|
this.base = `http://127.0.0.1:${server.server.address().port}/webtorrent`;
|
|
@@ -3698,7 +3698,7 @@ function Help() {
|
|
|
3698
3698
|
|
|
3699
3699
|
// src/cli.tsx
|
|
3700
3700
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
3701
|
-
var VERSION = "0.2.
|
|
3701
|
+
var VERSION = "0.2.3";
|
|
3702
3702
|
var HELP = `flick ${VERSION}: search a film, pick a torrent, watch it now
|
|
3703
3703
|
|
|
3704
3704
|
usage:
|
package/man/flick.1
CHANGED
package/package.json
CHANGED