@boy-offi9-inc/tidepull 0.17.1 → 0.17.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.
Files changed (2) hide show
  1. package/dist/main.js +6 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -3,6 +3,7 @@ import { DEFAULT_FORMAT, selectFormats } from "./core/selector.js";
3
3
  import { TidepullError, errMsg } from "./core/errors.js";
4
4
  import { existsSync, readFileSync } from "node:fs";
5
5
  import { spawnSync } from "node:child_process";
6
+ import { homedir } from "node:os";
6
7
  import { isPlaylist } from "./core/pipeline.js";
7
8
  import { Archive, configArgs, parseRate, readUrlList } from "./cliutil.js";
8
9
  import { cookieJar, loadCookieFile } from "./cookies.js";
@@ -323,13 +324,15 @@ export async function main(argv) {
323
324
  const dim = (s) => paint(theme.dim, s);
324
325
  const ok = (s) => paint(theme.success, s);
325
326
  const ff = ffmpegProbe();
327
+ const shortDir = defDir.startsWith(homedir())
328
+ ? `~${defDir.slice(homedir().length)}`
329
+ : defDir;
326
330
  process.stderr.write([
327
331
  "",
328
- dim("environment") + " " + ok(ff) + " " + dim(`plugins dir: ${defDir}`) + ` ` + dim(`(${plugins.length} loaded)`),
329
- dim("more") + " " + dim("'tidepull --help' for every option · github.com/boy-offi9-inc/Tidepull"),
332
+ dim(`${ok(ff)} · ${plugins.length} plugin${plugins.length === 1 ? "" : "s"} · ${shortDir}`),
330
333
  "",
331
334
  ].join("\n"));
332
- log.error("No URL given. Quick start: tidepull <url>");
335
+ process.stderr.write(dim("give it a URL: tidepull <url>\n"));
333
336
  return 2;
334
337
  }
335
338
  const tp = createTidepull({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boy-offi9-inc/tidepull",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "A minimal, from-scratch media downloader library: extractor plugins, yt-dlp-style format selection, resumable downloads.",
5
5
  "type": "module",
6
6
  "license": "MIT",