@mkterswingman/yt-mcp 0.2.0 → 0.2.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.
@@ -73,6 +73,7 @@ async function downloadSubtitle(videoId, lang, format) {
73
73
  const dlFormat = format === "csv" ? "vtt" : format;
74
74
  const result = await runYtDlp([
75
75
  "--skip-download",
76
+ "-f", "mhtml",
76
77
  "--write-sub",
77
78
  "--write-auto-sub",
78
79
  "--sub-langs",
@@ -374,6 +375,7 @@ export function registerSubtitleTools(server, config, tokenManager) {
374
375
  // Test with a known public video (Rick Astley - Never Gonna Give You Up)
375
376
  const result = await runYtDlp([
376
377
  "--skip-download",
378
+ "-f", "mhtml",
377
379
  "--write-auto-sub",
378
380
  "--sub-langs",
379
381
  "en",
@@ -2,12 +2,13 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
2
  import { homedir } from "node:os";
3
3
  import { join } from "node:path";
4
4
  const CONFIG_DIR = join(homedir(), ".yt-mcp");
5
+ const SUBTITLES_DIR = join(homedir(), "Downloads", "yt-mcp");
5
6
  export const PATHS = {
6
7
  configDir: CONFIG_DIR,
7
8
  authJson: join(CONFIG_DIR, "auth.json"),
8
9
  cookiesTxt: join(CONFIG_DIR, "cookies.txt"),
9
10
  browserProfile: join(CONFIG_DIR, "browser-profile"),
10
- subtitlesDir: join(CONFIG_DIR, "subtitles"),
11
+ subtitlesDir: SUBTITLES_DIR,
11
12
  configJson: join(CONFIG_DIR, "config.json"),
12
13
  };
13
14
  const DEFAULTS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkterswingman/yt-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "YouTube MCP client — local subtitles + remote API proxy",
5
5
  "type": "module",
6
6
  "bin": {