@nitrimandylis/flick 0.1.1 → 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 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.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
@@ -1,4 +1,4 @@
1
- .TH FLICK 1 "2026-11-02" "flick 0.1.1" "User Commands"
1
+ .TH FLICK 1 "2026-11-02" "flick 0.1.2" "User Commands"
2
2
  .SH NAME
3
3
  flick \- search a film or a show, pick a torrent, watch it now
4
4
  .SH SYNOPSIS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitrimandylis/flick",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Search a film or a show, pick a torrent, watch it now in a full-screen terminal UI. Or watch together, in sync, from two places.",
5
5
  "keywords": [
6
6
  "torrent",