@involvex/youtube-music-cli 0.3.6 → 0.3.8
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/CHANGELOG.md +22 -0
- package/dist/source/cli.js +308 -312
- package/dist/web/assets/{index-DzLJXkoj.js → index-DXXfWgR0.js} +1 -1
- package/dist/web/icons/apple-touch-icon.png +0 -0
- package/dist/web/icons/icon-192.png +0 -0
- package/dist/web/icons/icon-512.png +0 -0
- package/dist/web/index.html +26 -2
- package/dist/web/manifest.webmanifest +40 -0
- package/dist/web/sw.js +33 -0
- package/package.json +9 -8
- package/readme.md +12 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/web/index.html
CHANGED
|
@@ -2,15 +2,39 @@
|
|
|
2
2
|
<html lang="en" data-theme="dark">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<meta
|
|
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-
|
|
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.
|
|
3
|
+
"version": "0.3.8",
|
|
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",
|
|
@@ -83,19 +84,19 @@
|
|
|
83
84
|
"ink-table": "^3.1.0",
|
|
84
85
|
"ink-text-input": "^6.0.0",
|
|
85
86
|
"meow": "^14.1.0",
|
|
86
|
-
"node-notifier": "^
|
|
87
|
+
"node-notifier": "^12.1.0",
|
|
87
88
|
"node-youtube-music": "^0.10.3",
|
|
88
89
|
"play-sound": "^1.1.6",
|
|
89
90
|
"react": "19.3.1",
|
|
90
91
|
"string-width": "^8.3.0",
|
|
91
|
-
"ws": "^8.
|
|
92
|
+
"ws": "^8.23.0",
|
|
92
93
|
"yaml": "^2.9.1",
|
|
93
94
|
"youtubei.js": "^18.3.0"
|
|
94
95
|
},
|
|
95
96
|
"devDependencies": {
|
|
96
97
|
"@eslint/js": "^10.0.1",
|
|
97
98
|
"@sindresorhus/tsconfig": "^8.1.0",
|
|
98
|
-
"@tsconfig/bun": "^1.0.
|
|
99
|
+
"@tsconfig/bun": "^1.0.12",
|
|
99
100
|
"@types/bun": "^1.4.4",
|
|
100
101
|
"@types/node": "^26.2.0",
|
|
101
102
|
"@types/react": "^19.3.0",
|
|
@@ -104,21 +105,21 @@
|
|
|
104
105
|
"bun-types": "^1.4.4",
|
|
105
106
|
"chalk": "^6.0.0",
|
|
106
107
|
"conventional-changelog-cli": "^5.0.0",
|
|
107
|
-
"eslint": "10.
|
|
108
|
+
"eslint": "^10.15.0",
|
|
108
109
|
"eslint-plugin-react": "^7.37.5",
|
|
109
110
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
110
111
|
"globals": "^17.11.0",
|
|
111
112
|
"ink-testing-library": "^4.0.0",
|
|
112
113
|
"jiti": "^2.7.0",
|
|
113
|
-
"prettier": "^3.
|
|
114
|
+
"prettier": "^3.10.1",
|
|
114
115
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
115
|
-
"prettier-plugin-packagejson": "^3.0
|
|
116
|
+
"prettier-plugin-packagejson": "^3.1.0",
|
|
116
117
|
"prettier-plugin-sort-imports": "^1.8.11",
|
|
117
118
|
"react-devtools-core": "^8.0.0",
|
|
118
119
|
"rimraf": "^6.1.3",
|
|
119
120
|
"tsx": "^4.23.15",
|
|
120
121
|
"typescript": "^6.0.3",
|
|
121
|
-
"typescript-eslint": "8.72.
|
|
122
|
+
"typescript-eslint": "^8.72.2"
|
|
122
123
|
},
|
|
123
124
|
"engines": {
|
|
124
125
|
"node": ">=18.0"
|
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
|