untube 1.0.0
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/LICENSE +24 -0
- package/README.md +63 -0
- package/dist/cookie-manager.d.ts +12 -0
- package/dist/cookie-manager.d.ts.map +1 -0
- package/dist/cookie-manager.js +92 -0
- package/dist/cookie-manager.js.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +273 -0
- package/dist/index.js.map +1 -0
- package/dist/solver-bundle.d.ts +6 -0
- package/dist/solver-bundle.d.ts.map +1 -0
- package/dist/solver-bundle.js +2050 -0
- package/dist/solver-bundle.js.map +1 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <https://unlicense.org/>
|
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# untube
|
|
2
|
+
|
|
3
|
+
*(Project ini merupakan adaptasi dan porting logika dekripsi dari [yt-dlp](https://github.com/yt-dlp/yt-dlp))*
|
|
4
|
+
|
|
5
|
+
## Fitur
|
|
6
|
+
|
|
7
|
+
- ✅ Mendapatkan metadata video lengkap.
|
|
8
|
+
- ✅ Mendukung HTTP/HTTPS Proxy via `undici`.
|
|
9
|
+
- ✅ Pengelolaan Cookies otomatis.
|
|
10
|
+
- ✅ Full TypeScript support.
|
|
11
|
+
|
|
12
|
+
## Instalasi
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install untube
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Penggunaan
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { getVideoInfo } from 'untube';
|
|
22
|
+
|
|
23
|
+
async function main() {
|
|
24
|
+
try {
|
|
25
|
+
const info = await getVideoInfo('videoId', {
|
|
26
|
+
// Opsional: Path ke file cookies (format Netscape)
|
|
27
|
+
cookieFile: './cookies.txt',
|
|
28
|
+
// Opsional: Gunakan proxy jika terkena rate limit/blokir
|
|
29
|
+
proxy: 'http://user:pass@my-proxy.com:8080'
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
console.log('Judul:', info.title);
|
|
33
|
+
console.log('Channel:', info.uploader);
|
|
34
|
+
|
|
35
|
+
// List format video & audio yang tersedia
|
|
36
|
+
info.formats.forEach(format => {
|
|
37
|
+
console.log(`[${format.format_id}] ${format.resolution} - ${format.url}`);
|
|
38
|
+
});
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.error('Gagal mengambil info:', error);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
main();
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Penanganan Cookies
|
|
48
|
+
|
|
49
|
+
Penggunaan cookies sangat disarankan untuk menghindari rate limit, mengakses video yang dibatasi umur (NSFW), atau video yang hanya tersedia di wilayah tertentu.
|
|
50
|
+
|
|
51
|
+
### Cara Mendapatkan Cookies:
|
|
52
|
+
1. Instal ekstensi browser seperti **"Get cookies.txt LOCALLY"** (tersedia di Chrome Web Store atau Firefox Add-ons).
|
|
53
|
+
2. Buka YouTube dan pastikan Anda sudah login (opsional, tapi disarankan).
|
|
54
|
+
3. Klik pada ekstensi tersebut dan pilih **"Export as Netscape format"**.
|
|
55
|
+
4. Simpan file tersebut dengan nama `cookies.txt` di direktori proyek Anda.
|
|
56
|
+
5. Masukkan path file tersebut ke dalam opsi `cookieFile` saat memanggil `getVideoInfo`.
|
|
57
|
+
|
|
58
|
+
> **⚠️ Keamanan:** Jangan pernah membagikan file `cookies.txt` Anda kepada siapapun karena berisi sesi login Anda. Pastikan `cookies.txt` sudah masuk ke dalam `.gitignore`.
|
|
59
|
+
|
|
60
|
+
## Lisensi
|
|
61
|
+
|
|
62
|
+
[Unlicense](LICENSE)
|
|
63
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CookieJar } from 'tough-cookie';
|
|
2
|
+
declare class CookieManager {
|
|
3
|
+
private filePath;
|
|
4
|
+
jar: CookieJar;
|
|
5
|
+
constructor(filePath: string);
|
|
6
|
+
load(): void;
|
|
7
|
+
save(): void;
|
|
8
|
+
getCookieString(url: string): string;
|
|
9
|
+
setCookieString(cookieStr: string, url: string): void;
|
|
10
|
+
}
|
|
11
|
+
export default CookieManager;
|
|
12
|
+
//# sourceMappingURL=cookie-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookie-manager.d.ts","sourceRoot":"","sources":["../src/cookie-manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,SAAS,EAAE,MAAM,cAAc,CAAA;AAEhD,cAAM,aAAa;IACf,OAAO,CAAC,QAAQ,CAAQ;IACjB,GAAG,EAAE,SAAS,CAAA;gBAET,QAAQ,EAAE,MAAM;IAK5B,IAAI,IAAI,IAAI;IAoDZ,IAAI,IAAI,IAAI;IAwBZ,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAIpC,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;CAMxD;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import { Cookie, CookieJar } from 'tough-cookie';
|
|
3
|
+
class CookieManager {
|
|
4
|
+
filePath;
|
|
5
|
+
jar;
|
|
6
|
+
constructor(filePath) {
|
|
7
|
+
this.filePath = filePath;
|
|
8
|
+
this.jar = new CookieJar(undefined, { looseMode: true });
|
|
9
|
+
}
|
|
10
|
+
load() {
|
|
11
|
+
if (!fs.existsSync(this.filePath))
|
|
12
|
+
return;
|
|
13
|
+
const content = fs.readFileSync(this.filePath, 'utf8');
|
|
14
|
+
const lines = content.split('\n');
|
|
15
|
+
for (const line of lines) {
|
|
16
|
+
const trimmed = line.trim();
|
|
17
|
+
if (!trimmed || (trimmed.startsWith('#') && !trimmed.startsWith('#HttpOnly_')))
|
|
18
|
+
continue;
|
|
19
|
+
let isHttpOnly = false;
|
|
20
|
+
let actualLine = trimmed;
|
|
21
|
+
if (actualLine.startsWith('#HttpOnly_')) {
|
|
22
|
+
isHttpOnly = true;
|
|
23
|
+
actualLine = actualLine.substring(10);
|
|
24
|
+
}
|
|
25
|
+
const parts = actualLine.split('\t');
|
|
26
|
+
if (parts.length < 7)
|
|
27
|
+
continue;
|
|
28
|
+
const domain = parts[0];
|
|
29
|
+
const includesSubdomains = parts[1] === 'TRUE';
|
|
30
|
+
const path = parts[2];
|
|
31
|
+
const secure = parts[3] === 'TRUE';
|
|
32
|
+
const expires = Number.parseInt(parts[4], 10);
|
|
33
|
+
const name = parts[5];
|
|
34
|
+
const value = parts[6];
|
|
35
|
+
const cookie = new Cookie({
|
|
36
|
+
key: name,
|
|
37
|
+
value,
|
|
38
|
+
domain: domain?.startsWith('.') ? domain.substring(1) : domain,
|
|
39
|
+
path,
|
|
40
|
+
secure,
|
|
41
|
+
httpOnly: isHttpOnly,
|
|
42
|
+
hostOnly: !includesSubdomains,
|
|
43
|
+
expires: expires <= 0 ? 'Infinity' : new Date(expires * 1000),
|
|
44
|
+
});
|
|
45
|
+
const protocol = secure ? 'https' : 'http';
|
|
46
|
+
const domainProp = cookie.domain || 'youtube.com';
|
|
47
|
+
const host = domainProp.startsWith('.') ? domainProp.substring(1) : domainProp;
|
|
48
|
+
const url = `${protocol}://${host}${path}`;
|
|
49
|
+
try {
|
|
50
|
+
this.jar.setCookieSync(cookie, url, { ignoreError: true });
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
save() {
|
|
57
|
+
let out = '# Netscape HTTP Cookie File\n';
|
|
58
|
+
out += '# This file was generated by Node.js\n\n';
|
|
59
|
+
this.jar.store.getAllCookies((err, allCookies) => {
|
|
60
|
+
if (err)
|
|
61
|
+
throw err;
|
|
62
|
+
if (!allCookies)
|
|
63
|
+
return;
|
|
64
|
+
for (const cookie of allCookies) {
|
|
65
|
+
const prefix = cookie.httpOnly ? '#HttpOnly_' : '';
|
|
66
|
+
let domain = cookie.domain || '';
|
|
67
|
+
if (!cookie.hostOnly && !domain.startsWith('.'))
|
|
68
|
+
domain = `.${domain}`;
|
|
69
|
+
const includeSubdomains = domain.startsWith('.') || !cookie.hostOnly ? 'TRUE' : 'FALSE';
|
|
70
|
+
const path = cookie.path || '/';
|
|
71
|
+
const secure = cookie.secure ? 'TRUE' : 'FALSE';
|
|
72
|
+
const expires = cookie.expires === 'Infinity' || !cookie.expires ? 0 : Math.floor(new Date(cookie.expires).getTime() / 1000);
|
|
73
|
+
const name = cookie.key;
|
|
74
|
+
const value = cookie.value;
|
|
75
|
+
out += `${prefix}${domain}\t${includeSubdomains}\t${path}\t${secure}\t${expires}\t${name}\t${value}\n`;
|
|
76
|
+
}
|
|
77
|
+
fs.writeFileSync(this.filePath, out, 'utf8');
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
getCookieString(url) {
|
|
81
|
+
return this.jar.getCookieStringSync(url);
|
|
82
|
+
}
|
|
83
|
+
setCookieString(cookieStr, url) {
|
|
84
|
+
try {
|
|
85
|
+
this.jar.setCookieSync(cookieStr, url);
|
|
86
|
+
}
|
|
87
|
+
catch {
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export default CookieManager;
|
|
92
|
+
//# sourceMappingURL=cookie-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookie-manager.js","sourceRoot":"","sources":["../src/cookie-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAEhD,MAAM,aAAa;IACP,QAAQ,CAAQ;IACjB,GAAG,CAAW;IAErB,YAAY,QAAgB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,GAAG,GAAG,IAAI,SAAS,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5D,CAAC;IAED,IAAI;QACA,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC;YAAE,OAAM;QAEzC,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QACtD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;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;QAC1C,IAAI,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,SAAS,EAAE,GAAG,CAAC,CAAA;QAC1C,CAAC;QAAC,MAAM,CAAC;QACT,CAAC;IACL,CAAC;CACJ;AAED,eAAe,aAAa,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface YouTubeFormat {
|
|
2
|
+
asr: number | null;
|
|
3
|
+
filesize: number | null;
|
|
4
|
+
format_id: string;
|
|
5
|
+
format_note: string;
|
|
6
|
+
fps: number | null;
|
|
7
|
+
audio_channels: number | null;
|
|
8
|
+
height: number | null;
|
|
9
|
+
width: number | null;
|
|
10
|
+
quality: string | number | null;
|
|
11
|
+
tbr: number | null;
|
|
12
|
+
ext: string;
|
|
13
|
+
vcodec: string;
|
|
14
|
+
acodec: string;
|
|
15
|
+
container: string | null;
|
|
16
|
+
url: string;
|
|
17
|
+
protocol: string;
|
|
18
|
+
audio_ext: string;
|
|
19
|
+
video_ext: string;
|
|
20
|
+
vbr: number | null;
|
|
21
|
+
abr: number | null;
|
|
22
|
+
resolution: string;
|
|
23
|
+
format: string;
|
|
24
|
+
}
|
|
25
|
+
export interface VideoInfo {
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
channel: string;
|
|
30
|
+
uploader: string;
|
|
31
|
+
channel_id: string;
|
|
32
|
+
channel_url: string | null;
|
|
33
|
+
duration: number;
|
|
34
|
+
view_count: number;
|
|
35
|
+
average_rating: number | null;
|
|
36
|
+
age_limit: number;
|
|
37
|
+
webpage_url: string;
|
|
38
|
+
categories: string[] | null;
|
|
39
|
+
playable_in_embed: boolean;
|
|
40
|
+
live_status: string;
|
|
41
|
+
media_type: string;
|
|
42
|
+
thumbnail: string;
|
|
43
|
+
thumbnails: any[];
|
|
44
|
+
formats: YouTubeFormat[];
|
|
45
|
+
availability: string;
|
|
46
|
+
}
|
|
47
|
+
export interface GetVideoInfoOptions {
|
|
48
|
+
cookieFile?: string;
|
|
49
|
+
proxy?: string;
|
|
50
|
+
}
|
|
51
|
+
declare function getVideoInfo(videoId: string, options?: GetVideoInfoOptions): Promise<VideoInfo>;
|
|
52
|
+
export { getVideoInfo };
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IAC/B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC3B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,GAAG,EAAE,CAAA;IACjB,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAUD,iBAAe,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,SAAS,CAAC,CAkMlG;AA4GD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import CookieManager from './cookie-manager.js';
|
|
2
|
+
import jsc from './solver-bundle.js';
|
|
3
|
+
import crypto from 'node:crypto';
|
|
4
|
+
import { fetch, ProxyAgent } from 'undici';
|
|
5
|
+
async function getVideoInfo(videoId, options = {}) {
|
|
6
|
+
const cookieFile = options.cookieFile || './cookies.txt';
|
|
7
|
+
const cm = new CookieManager(cookieFile);
|
|
8
|
+
cm.load();
|
|
9
|
+
const dispatcher = options.proxy ? new ProxyAgent(options.proxy) : undefined;
|
|
10
|
+
const watchUrl = `https://www.youtube.com/watch?v=${videoId}`;
|
|
11
|
+
const headers = {
|
|
12
|
+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
|
|
13
|
+
'Accept-Language': 'en-US,en;q=0.9',
|
|
14
|
+
'Cookie': cm.getCookieString(watchUrl) || '',
|
|
15
|
+
};
|
|
16
|
+
const pageRes = await fetch(watchUrl, { headers, dispatcher });
|
|
17
|
+
const pageHtml = await pageRes.text();
|
|
18
|
+
const setCookies = pageRes.headers.getSetCookie();
|
|
19
|
+
if (setCookies && setCookies.length > 0) {
|
|
20
|
+
setCookies.forEach((cookie) => cm.setCookieString(cookie, watchUrl));
|
|
21
|
+
cm.save();
|
|
22
|
+
}
|
|
23
|
+
const ytcfgMatch = pageHtml.match(/ytcfg\.set\(\{([\s\S]*?)\}\);/);
|
|
24
|
+
if (!ytcfgMatch)
|
|
25
|
+
throw new Error('ytcfg not found in webpage');
|
|
26
|
+
const ytcfg = JSON.parse(`{${ytcfgMatch[1]}}`);
|
|
27
|
+
const apiKey = ytcfg.INNERTUBE_API_KEY;
|
|
28
|
+
const sts = ytcfg.STS;
|
|
29
|
+
let initialPlayerResponse = {};
|
|
30
|
+
const initialPlayerMatch = pageHtml.match(/ytInitialPlayerResponse\s*=\s*(\{.*?\});/);
|
|
31
|
+
if (initialPlayerMatch) {
|
|
32
|
+
try {
|
|
33
|
+
initialPlayerResponse = JSON.parse(initialPlayerMatch[1]);
|
|
34
|
+
}
|
|
35
|
+
catch { }
|
|
36
|
+
}
|
|
37
|
+
const apiUrl = `https://www.youtube.com/youtubei/v1/player?key=${apiKey}&prettyPrint=false`;
|
|
38
|
+
const clientName = 'TVHTML5';
|
|
39
|
+
const clientVersion = '5.20260114';
|
|
40
|
+
const payload = {
|
|
41
|
+
context: {
|
|
42
|
+
client: {
|
|
43
|
+
clientName,
|
|
44
|
+
clientVersion,
|
|
45
|
+
userAgent: 'Mozilla/5.0 (ChromiumStylePlatform) Cobalt/Version',
|
|
46
|
+
hl: 'en',
|
|
47
|
+
gl: 'US',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
videoId,
|
|
51
|
+
playbackContext: {
|
|
52
|
+
contentPlaybackContext: {
|
|
53
|
+
html5Preference: 'HTML5_PREF_WANTS',
|
|
54
|
+
signatureTimestamp: sts,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
const apiHeaders = {
|
|
59
|
+
'User-Agent': 'Mozilla/5.0 (ChromiumStylePlatform) Cobalt/Version',
|
|
60
|
+
'Content-Type': 'application/json',
|
|
61
|
+
'X-Youtube-Client-Name': '7',
|
|
62
|
+
'X-Youtube-Client-Version': clientVersion,
|
|
63
|
+
'Origin': 'https://www.youtube.com',
|
|
64
|
+
'Cookie': cm.getCookieString(apiUrl) || '',
|
|
65
|
+
};
|
|
66
|
+
const sapisidCookie = cm.jar.getCookiesSync(apiUrl).find((c) => c.key === 'SAPISID');
|
|
67
|
+
if (sapisidCookie) {
|
|
68
|
+
const timestamp = Math.floor(Date.now() / 1000).toString();
|
|
69
|
+
const hash = crypto.createHash('sha1').update(`${timestamp} ${sapisidCookie.value} https://www.youtube.com`).digest('hex');
|
|
70
|
+
apiHeaders.Authorization = `SAPISIDHASH ${timestamp}_${hash}`;
|
|
71
|
+
}
|
|
72
|
+
const apiRes = await fetch(apiUrl, {
|
|
73
|
+
method: 'POST',
|
|
74
|
+
headers: apiHeaders,
|
|
75
|
+
body: JSON.stringify(payload),
|
|
76
|
+
dispatcher,
|
|
77
|
+
});
|
|
78
|
+
const apiSetCookies = apiRes.headers.getSetCookie();
|
|
79
|
+
if (apiSetCookies && apiSetCookies.length > 0) {
|
|
80
|
+
apiSetCookies.forEach((cookie) => cm.setCookieString(cookie, apiUrl));
|
|
81
|
+
cm.save();
|
|
82
|
+
}
|
|
83
|
+
if (!apiRes.ok) {
|
|
84
|
+
throw new Error(`InnerTube API failed: ${apiRes.status} ${apiRes.statusText}`);
|
|
85
|
+
}
|
|
86
|
+
const json = await apiRes.json();
|
|
87
|
+
let preprocessedPlayerCache = null;
|
|
88
|
+
const getPreprocessedPlayer = async () => {
|
|
89
|
+
if (preprocessedPlayerCache)
|
|
90
|
+
return preprocessedPlayerCache;
|
|
91
|
+
const playerUrl = ytcfg.PLAYER_JS_URL ? `https://www.youtube.com${ytcfg.PLAYER_JS_URL}` : 'https://www.youtube.com/s/player/74edf1a3/player_es6.vflset/en_US/base.js';
|
|
92
|
+
const res = await fetch(playerUrl, { dispatcher });
|
|
93
|
+
const baseJs = await res.text();
|
|
94
|
+
const input = { type: 'player', player: baseJs, requests: [], output_preprocessed: true };
|
|
95
|
+
const result = jsc(input);
|
|
96
|
+
preprocessedPlayerCache = result.preprocessed_player;
|
|
97
|
+
return preprocessedPlayerCache;
|
|
98
|
+
};
|
|
99
|
+
const allFormats = [
|
|
100
|
+
...(json.streamingData?.formats || []),
|
|
101
|
+
...(json.streamingData?.adaptiveFormats || []),
|
|
102
|
+
];
|
|
103
|
+
const sigChallenges = [];
|
|
104
|
+
const nChallenges = [];
|
|
105
|
+
for (const format of allFormats) {
|
|
106
|
+
if (format.signatureCipher) {
|
|
107
|
+
const searchParams = new URLSearchParams(format.signatureCipher);
|
|
108
|
+
const s = searchParams.get('s');
|
|
109
|
+
if (s)
|
|
110
|
+
sigChallenges.push(s);
|
|
111
|
+
const baseUrl = searchParams.get('url');
|
|
112
|
+
if (baseUrl) {
|
|
113
|
+
const u = new URL(baseUrl);
|
|
114
|
+
const n = u.searchParams.get('n');
|
|
115
|
+
if (n)
|
|
116
|
+
nChallenges.push(n);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
else if (format.url) {
|
|
120
|
+
const u = new URL(format.url);
|
|
121
|
+
const n = u.searchParams.get('n');
|
|
122
|
+
if (n)
|
|
123
|
+
nChallenges.push(n);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
if (sigChallenges.length > 0 || nChallenges.length > 0) {
|
|
127
|
+
const preprocessedPlayer = await getPreprocessedPlayer();
|
|
128
|
+
const requests = [];
|
|
129
|
+
if (sigChallenges.length > 0)
|
|
130
|
+
requests.push({ type: 'sig', challenges: [...new Set(sigChallenges)] });
|
|
131
|
+
if (nChallenges.length > 0)
|
|
132
|
+
requests.push({ type: 'n', challenges: [...new Set(nChallenges)] });
|
|
133
|
+
const input = { type: 'preprocessed', preprocessed_player: preprocessedPlayer, requests };
|
|
134
|
+
const result = jsc(input);
|
|
135
|
+
const sigData = result.responses?.find((r) => r.type === 'result' && sigChallenges.includes(Object.keys(r.data || {})[0]))?.data || {};
|
|
136
|
+
const nData = result.responses?.find((r) => r.type === 'result' && nChallenges.includes(Object.keys(r.data || {})[0]))?.data || {};
|
|
137
|
+
for (const format of allFormats) {
|
|
138
|
+
if (format.signatureCipher) {
|
|
139
|
+
const searchParams = new URLSearchParams(format.signatureCipher);
|
|
140
|
+
const baseUrl = searchParams.get('url');
|
|
141
|
+
const sp = searchParams.get('sp') || 'sig';
|
|
142
|
+
const s = searchParams.get('s');
|
|
143
|
+
if (baseUrl) {
|
|
144
|
+
const u = new URL(baseUrl);
|
|
145
|
+
const n = u.searchParams.get('n');
|
|
146
|
+
if (s && sigData[s])
|
|
147
|
+
u.searchParams.set(sp, sigData[s]);
|
|
148
|
+
if (n && nData[n])
|
|
149
|
+
u.searchParams.set('n', nData[n]);
|
|
150
|
+
format.url = u.toString();
|
|
151
|
+
}
|
|
152
|
+
delete format.signatureCipher;
|
|
153
|
+
}
|
|
154
|
+
else if (format.url) {
|
|
155
|
+
const u = new URL(format.url);
|
|
156
|
+
const n = u.searchParams.get('n');
|
|
157
|
+
if (n && nData[n]) {
|
|
158
|
+
u.searchParams.set('n', nData[n]);
|
|
159
|
+
format.url = u.toString();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
json.videoDetails = { ...(initialPlayerResponse.videoDetails || {}), ...(json.videoDetails || {}) };
|
|
165
|
+
json.microformat = initialPlayerResponse.microformat || json.microformat;
|
|
166
|
+
return normalizeYtDlp(json);
|
|
167
|
+
}
|
|
168
|
+
function normalizeYtDlp(json) {
|
|
169
|
+
const vd = json.videoDetails || {};
|
|
170
|
+
const mf = json.microformat?.playerMicroformatRenderer || {};
|
|
171
|
+
const formats = [];
|
|
172
|
+
const mapFormat = (f) => {
|
|
173
|
+
let vcodec = 'none';
|
|
174
|
+
let acodec = 'none';
|
|
175
|
+
let ext = f.mimeType ? f.mimeType.split(';')[0].split('/')[1] : 'unknown';
|
|
176
|
+
if (ext === 'x-flv')
|
|
177
|
+
ext = 'flv';
|
|
178
|
+
if (ext === 'vnd.apple.mpegurl')
|
|
179
|
+
ext = 'mp4';
|
|
180
|
+
if (f.mimeType) {
|
|
181
|
+
const match = f.mimeType.match(/codecs="(.*?)"/);
|
|
182
|
+
if (match) {
|
|
183
|
+
const codecs = match[1].split(',').map((c) => c.trim());
|
|
184
|
+
if (f.mimeType.startsWith('audio/')) {
|
|
185
|
+
acodec = codecs[0];
|
|
186
|
+
}
|
|
187
|
+
else if (f.mimeType.startsWith('video/')) {
|
|
188
|
+
vcodec = codecs[0];
|
|
189
|
+
if (codecs.length > 1) {
|
|
190
|
+
acodec = codecs[1];
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
let container = ext;
|
|
196
|
+
if (f.mimeType?.includes('mp4'))
|
|
197
|
+
container = 'mp4';
|
|
198
|
+
else if (f.mimeType?.includes('webm'))
|
|
199
|
+
container = 'webm';
|
|
200
|
+
else if (f.mimeType?.includes('3gpp'))
|
|
201
|
+
container = '3gp';
|
|
202
|
+
else if (f.mimeType?.includes('x-flv'))
|
|
203
|
+
container = 'flv';
|
|
204
|
+
let resolution = 'audio only';
|
|
205
|
+
if (f.width && f.height) {
|
|
206
|
+
resolution = `${f.width}x${f.height}`;
|
|
207
|
+
}
|
|
208
|
+
else if (f.height) {
|
|
209
|
+
resolution = `${f.height}p`;
|
|
210
|
+
}
|
|
211
|
+
else if (f.width) {
|
|
212
|
+
resolution = `${f.width}w`;
|
|
213
|
+
}
|
|
214
|
+
const format = f.qualityLabel ? `${f.itag} - ${f.qualityLabel}` : `${f.itag} - ${resolution}`;
|
|
215
|
+
return {
|
|
216
|
+
asr: f.audioSampleRate ? Number.parseInt(f.audioSampleRate, 10) : null,
|
|
217
|
+
filesize: f.contentLength ? Number.parseInt(f.contentLength, 10) : null,
|
|
218
|
+
format_id: f.itag ? f.itag.toString() : '',
|
|
219
|
+
format_note: f.qualityLabel || f.quality || '',
|
|
220
|
+
fps: f.fps || null,
|
|
221
|
+
audio_channels: f.audioChannels || null,
|
|
222
|
+
height: f.height || null,
|
|
223
|
+
width: f.width || null,
|
|
224
|
+
quality: f.quality || f.qualityLabel || null,
|
|
225
|
+
tbr: f.bitrate ? Math.round(f.bitrate / 1000) : null,
|
|
226
|
+
ext,
|
|
227
|
+
vcodec,
|
|
228
|
+
acodec,
|
|
229
|
+
container,
|
|
230
|
+
url: f.url,
|
|
231
|
+
protocol: f.url?.startsWith('https') ? 'https' : 'http',
|
|
232
|
+
audio_ext: acodec !== 'none' ? (container === 'webm' ? 'webm' : 'm4a') : 'none',
|
|
233
|
+
video_ext: vcodec !== 'none' ? ext : 'none',
|
|
234
|
+
vbr: f.averageBitrate ? Math.round(f.averageBitrate / 1000) : null,
|
|
235
|
+
abr: f.audioSampleRate ? Math.round(Number.parseInt(f.audioSampleRate, 10) / 1000) : null,
|
|
236
|
+
resolution,
|
|
237
|
+
format,
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
if (json.streamingData?.formats) {
|
|
241
|
+
formats.push(...json.streamingData.formats.map(mapFormat));
|
|
242
|
+
}
|
|
243
|
+
if (json.streamingData?.adaptiveFormats) {
|
|
244
|
+
formats.push(...json.streamingData.adaptiveFormats.map(mapFormat));
|
|
245
|
+
}
|
|
246
|
+
const duration = Number.parseInt(vd.lengthSeconds || mf.lengthSeconds || '0', 10);
|
|
247
|
+
const view_count = Number.parseInt(vd.viewCount || mf.viewCount || '0', 10);
|
|
248
|
+
const isLive = vd.isLiveContent || false;
|
|
249
|
+
return {
|
|
250
|
+
id: vd.videoId,
|
|
251
|
+
title: vd.title || mf.title?.simpleText,
|
|
252
|
+
description: vd.shortDescription || mf.description?.simpleText || '',
|
|
253
|
+
channel: vd.author || mf.ownerChannelName,
|
|
254
|
+
uploader: vd.author || mf.ownerChannelName,
|
|
255
|
+
channel_id: vd.channelId || mf.externalChannelId,
|
|
256
|
+
channel_url: vd.channelId || mf.externalChannelId ? `https://www.youtube.com/channel/${vd.channelId || mf.externalChannelId}` : null,
|
|
257
|
+
duration,
|
|
258
|
+
view_count,
|
|
259
|
+
average_rating: Number.parseFloat(vd.averageRating || '0') || null,
|
|
260
|
+
age_limit: (mf.isFamilySafe === false) ? 18 : (json.playabilityStatus?.status === 'AGE_VERIFICATION_REQUIRED' ? 18 : 0),
|
|
261
|
+
webpage_url: `https://www.youtube.com/watch?v=${vd.videoId}`,
|
|
262
|
+
categories: mf.category ? [mf.category] : null,
|
|
263
|
+
playable_in_embed: mf.isUnlisted === undefined ? true : !mf.isUnlisted,
|
|
264
|
+
live_status: isLive ? 'is_live' : 'not_live',
|
|
265
|
+
media_type: isLive ? 'livestream' : (mf.isShortsEligible ? 'short' : 'video'),
|
|
266
|
+
thumbnail: mf.thumbnail?.thumbnails?.[mf.thumbnail.thumbnails.length - 1]?.url || vd.thumbnail?.thumbnails?.[vd.thumbnail.thumbnails.length - 1]?.url || '',
|
|
267
|
+
thumbnails: mf.thumbnail?.thumbnails || vd.thumbnail?.thumbnails || [],
|
|
268
|
+
formats,
|
|
269
|
+
availability: json.playabilityStatus?.status || 'OK',
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
export { getVideoInfo };
|
|
273
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRo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