@nitrimandylis/flick 0.1.0 → 0.1.2
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/README.md +2 -0
- package/dist/flick.js +7 -2
- package/man/flick.1 +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,6 +60,8 @@ flick couch
|
|
|
60
60
|
man flick
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
`bun add -g` skips install scripts, so the built-in engine's native parts are missing there: that is fine with rqbit installed, otherwise run `bun pm -g trust --all` once.
|
|
64
|
+
|
|
63
65
|
Type a title, press enter twice, and the film is playing. The second enter is the one you will regret at 2 am.
|
|
64
66
|
|
|
65
67
|
### Couch on a fixed address
|
package/dist/flick.js
CHANGED
|
@@ -1119,7 +1119,6 @@ class Couch {
|
|
|
1119
1119
|
// src/engines.ts
|
|
1120
1120
|
import { spawn as spawn3, spawnSync as spawnSync2 } from "node:child_process";
|
|
1121
1121
|
import { mkdirSync as mkdirSync4 } from "node:fs";
|
|
1122
|
-
import WebTorrent from "webtorrent";
|
|
1123
1122
|
var VIDEO = /\.(mkv|mp4|avi|webm|mov|m4v|ts)$/i;
|
|
1124
1123
|
var SUBTITLE = /\.(srt|vtt|ass|ssa)$/i;
|
|
1125
1124
|
function pickVideos(files) {
|
|
@@ -1211,6 +1210,12 @@ class Webtorrent {
|
|
|
1211
1210
|
async ensure() {
|
|
1212
1211
|
if (this.client)
|
|
1213
1212
|
return;
|
|
1213
|
+
let WebTorrent;
|
|
1214
|
+
try {
|
|
1215
|
+
WebTorrent = (await import("webtorrent")).default;
|
|
1216
|
+
} catch {
|
|
1217
|
+
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");
|
|
1218
|
+
}
|
|
1214
1219
|
this.client = new WebTorrent;
|
|
1215
1220
|
const server = this.client.createServer({ hostname: "127.0.0.1" });
|
|
1216
1221
|
await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve));
|
|
@@ -3473,7 +3478,7 @@ function Help() {
|
|
|
3473
3478
|
|
|
3474
3479
|
// src/cli.tsx
|
|
3475
3480
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
3476
|
-
var VERSION = "0.1.
|
|
3481
|
+
var VERSION = "0.1.2";
|
|
3477
3482
|
var HELP = `flick ${VERSION}: search a film, pick a torrent, watch it now
|
|
3478
3483
|
|
|
3479
3484
|
usage:
|
package/man/flick.1
CHANGED
package/package.json
CHANGED