@involvex/youtube-music-cli 0.3.6 → 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-DzLJXkoj.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.6",
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",
package/readme.md CHANGED
@@ -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