@involvex/youtube-music-cli 0.3.5 → 0.3.7

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.
Binary file
Binary file
@@ -2,15 +2,39 @@
2
2
  <html lang="en" data-theme="dark">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
5
+ <meta
6
+ name="viewport"
7
+ content="width=device-width, initial-scale=1.0, viewport-fit=cover"
8
+ />
9
+ <meta name="theme-color" content="#07090c" />
10
+ <meta name="color-scheme" content="dark" />
11
+ <meta
12
+ name="description"
13
+ content="Remote control and mirror playback for youtube-music-cli"
14
+ />
15
+ <meta name="mobile-web-app-capable" content="yes" />
16
+ <meta name="apple-mobile-web-app-capable" content="yes" />
17
+ <meta
18
+ name="apple-mobile-web-app-status-bar-style"
19
+ content="black-translucent"
20
+ />
21
+ <meta name="apple-mobile-web-app-title" content="ymc" />
6
22
  <title>ymc</title>
23
+ <link rel="manifest" href="/manifest.webmanifest" />
24
+ <link
25
+ rel="icon"
26
+ type="image/png"
27
+ sizes="192x192"
28
+ href="/icons/icon-192.png"
29
+ />
30
+ <link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
7
31
  <link rel="preconnect" href="https://fonts.googleapis.com" />
8
32
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
33
  <link
10
34
  href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Syne:wght@600;700&display=swap"
11
35
  rel="stylesheet"
12
36
  />
13
- <script type="module" crossorigin src="/assets/index-BlngibXW.js"></script>
37
+ <script type="module" crossorigin src="/assets/index-DXXfWgR0.js"></script>
14
38
  <link rel="stylesheet" crossorigin href="/assets/index-z-8VY-VM.css">
15
39
  </head>
16
40
  <body>
@@ -0,0 +1,40 @@
1
+ {
2
+ "id": "/",
3
+ "name": "YouTube Music CLI",
4
+ "short_name": "ymc",
5
+ "description": "Remote control and mirror playback for youtube-music-cli",
6
+ "start_url": "/",
7
+ "scope": "/",
8
+ "display": "standalone",
9
+ "orientation": "any",
10
+ "background_color": "#07090c",
11
+ "theme_color": "#07090c",
12
+ "lang": "en",
13
+ "categories": ["music", "entertainment"],
14
+ "icons": [
15
+ {
16
+ "src": "/icons/icon-192.png",
17
+ "sizes": "192x192",
18
+ "type": "image/png",
19
+ "purpose": "any"
20
+ },
21
+ {
22
+ "src": "/icons/icon-512.png",
23
+ "sizes": "512x512",
24
+ "type": "image/png",
25
+ "purpose": "any"
26
+ },
27
+ {
28
+ "src": "/icons/icon-192.png",
29
+ "sizes": "192x192",
30
+ "type": "image/png",
31
+ "purpose": "maskable"
32
+ },
33
+ {
34
+ "src": "/icons/icon-512.png",
35
+ "sizes": "512x512",
36
+ "type": "image/png",
37
+ "purpose": "maskable"
38
+ }
39
+ ]
40
+ }
package/dist/web/sw.js ADDED
@@ -0,0 +1,33 @@
1
+ /* Minimal service worker so Android Chrome can offer "Install app". */
2
+ const CACHE = 'ymc-shell-v1';
3
+
4
+ self.addEventListener('install', event => {
5
+ event.waitUntil(self.skipWaiting());
6
+ });
7
+
8
+ self.addEventListener('activate', event => {
9
+ event.waitUntil(
10
+ caches
11
+ .keys()
12
+ .then(keys =>
13
+ Promise.all(
14
+ keys.filter(key => key !== CACHE).map(key => caches.delete(key)),
15
+ ),
16
+ )
17
+ .then(() => self.clients.claim()),
18
+ );
19
+ });
20
+
21
+ self.addEventListener('fetch', event => {
22
+ const {request} = event;
23
+ if (request.method !== 'GET') {
24
+ return;
25
+ }
26
+
27
+ const url = new URL(request.url);
28
+ if (url.pathname === '/ws' || url.pathname.startsWith('/audio')) {
29
+ return;
30
+ }
31
+
32
+ event.respondWith(fetch(request));
33
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@involvex/youtube-music-cli",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "- A Commandline music player for youtube-music",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,6 +54,7 @@
54
54
  "dev": "bun run --bun source/cli.tsx",
55
55
  "dev:win32": "bun run --bun source/immersive-entry.tsx",
56
56
  "dev:watch": "bun run --bun --watch source/cli.tsx",
57
+ "dev:win32:watch": "bun run --bun --watch source/immersive-entry.tsx",
57
58
  "format": "prettier --write .",
58
59
  "format:check": "prettier --check .",
59
60
  "lint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern dist",
@@ -87,7 +88,7 @@
87
88
  "node-youtube-music": "^0.10.3",
88
89
  "play-sound": "^1.1.6",
89
90
  "react": "19.3.1",
90
- "string-width": "^7.2.0",
91
+ "string-width": "^8.3.0",
91
92
  "ws": "^8.21.3",
92
93
  "yaml": "^2.9.1",
93
94
  "youtubei.js": "^18.3.0"
@@ -104,7 +105,7 @@
104
105
  "bun-types": "^1.4.4",
105
106
  "chalk": "^6.0.0",
106
107
  "conventional-changelog-cli": "^5.0.0",
107
- "eslint": "10.12.0",
108
+ "eslint": "10.13.0",
108
109
  "eslint-plugin-react": "^7.37.5",
109
110
  "eslint-plugin-react-hooks": "^7.1.1",
110
111
  "globals": "^17.11.0",
@@ -118,7 +119,7 @@
118
119
  "rimraf": "^6.1.3",
119
120
  "tsx": "^4.23.15",
120
121
  "typescript": "^6.0.3",
121
- "typescript-eslint": "8.71.2"
122
+ "typescript-eslint": "8.72.0"
122
123
  },
123
124
  "engines": {
124
125
  "node": ">=18.0"
package/readme.md CHANGED
@@ -268,14 +268,14 @@ dist/ymc-win32.exe
268
268
  Every production build (`bun run build`) includes the browser companion at `dist/web/`. No separate `build:web` step is required for users.
269
269
 
270
270
  ```bash
271
- # TUI + web UI (default http://localhost:8080)
271
+ # TUI + web UI (default http://0.0.0.0:3000 → open http://localhost:3000)
272
272
  youtube-music-cli --web
273
273
 
274
274
  # Web UI only (no terminal interface)
275
275
  youtube-music-cli --web-only
276
276
 
277
277
  # Custom host/port and optional auth token
278
- youtube-music-cli --web --web-host 0.0.0.0 --web-port 3000 --web-auth secret
278
+ youtube-music-cli --web --host 127.0.0.1 --port 8080 --web-auth secret
279
279
  ```
280
280
 
281
281
  Open the printed URL in a browser for synced playback controls, queue, search, volume, shuffle/repeat/autoplay, and dark/light theme. State stays in sync with the CLI over WebSocket (`/ws`).
@@ -353,8 +353,8 @@ If you installed the CLI globally with an alias or script name, make sure `ymc`
353
353
  | `--headless` | | Run without TUI |
354
354
  | `--web` | | Enable web companion UI (bundled in build) |
355
355
  | `--web-only` | | Web UI only (no TUI) |
356
- | `--web-host` | | Web server host (default: `localhost`) |
357
- | `--web-port` | | Web server port (default: `8080`) |
356
+ | `--host` | | Web server host (default: `0.0.0.0`) |
357
+ | `--port` | | Web server port (default: `3000`) |
358
358
  | `--web-auth` | | Optional auth token for the web server |
359
359
  | `--win32` | | Immersive fullscreen mode (Windows only) |
360
360
  | `--help` | `-h` | Show help |
@@ -508,6 +508,18 @@ Config is stored in `~/.youtube-music-cli/config.json`:
508
508
  - MP3/M4A files are tagged with metadata (`title`, `artist`, `album`) and include cover art when available.
509
509
  - When a track is available on disk, playback prefers the local file (`preferLocalPlayback`, default `true`; Settings toggle). An index is kept at `~/.youtube-music-cli/downloads-index.json`. Legacy title-only filenames are still detected.
510
510
 
511
+ ### mpv Extra Args
512
+
513
+ YMC already launches mpv with `--no-video`, `--force-window=no`, and `--speed` matching the player. If your `mpv.conf` still interferes (or you need flags like `--no-config`), set **Settings → mpv Extra Args** or `"mpvExtraArgs"` in `~/.youtube-music-cli/config.json`.
514
+
515
+ Example:
516
+
517
+ ```json
518
+ "mpvExtraArgs": "--no-config"
519
+ ```
520
+
521
+ Args apply on the next track spawn. Conflicting flags (especially a second `--af=`) can break playback. `--input-ipc-server` and disabling idle are stripped so IPC keeps working.
522
+
511
523
  ## Troubleshooting
512
524
 
513
525
  ### mpv not found