extract-youtube 1.0.113 → 1.0.115
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/dist/archiver-web.es-D8Hmeu8M.mjs +2 -0
- package/dist/{archiver-web.es-CO0IfW41.mjs.map → archiver-web.es-D8Hmeu8M.mjs.map} +1 -1
- package/dist/archiver-web.es-DoAYzzd1.js +2 -0
- package/dist/{archiver-web.es-3EQgnnex.js.map → archiver-web.es-DoAYzzd1.js.map} +1 -1
- package/dist/{archiver-web.es-eh2cNrlm.js → archiver-web.es-g61rskug.js} +2 -2
- package/dist/{archiver-web.es-eh2cNrlm.js.map → archiver-web.es-g61rskug.js.map} +1 -1
- package/dist/cli.js +6 -7
- package/dist/cli.js.map +1 -1
- package/dist/index-CLlAnStL-BKslXZFs.mjs.map +1 -1
- package/dist/index-CLlAnStL-DDV_Pgc5.js.map +1 -1
- package/dist/{index-CLlAnStL-BNm8mEFS.js → index-CLlAnStL-DccNsVM4.js} +2 -2
- package/dist/{index-CLlAnStL-BNm8mEFS.js.map → index-CLlAnStL-DccNsVM4.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{rolldown-runtime-Bd6kNlEP.js → rolldown-runtime-ch10HqoO.js} +1 -1
- package/package.json +1 -1
- package/dist/archiver-web.es-3EQgnnex.js +0 -2
- package/dist/archiver-web.es-CO0IfW41.mjs +0 -2
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
3
|
+
const require_rolldown_runtime = require("./rolldown-runtime-ch10HqoO.js");
|
|
4
4
|
let html_entities = require("html-entities");
|
|
5
5
|
let fast_xml_parser = require("fast-xml-parser");
|
|
6
6
|
let https_proxy_agent = require("https-proxy-agent");
|
|
@@ -944,7 +944,8 @@ var TranscriptListFetcher = class {
|
|
|
944
944
|
const url = this.buildWatchUrl(videoId);
|
|
945
945
|
const response = await this.httpClient.get(url);
|
|
946
946
|
handleHttpErrors(response, videoId);
|
|
947
|
-
|
|
947
|
+
const rawHtml = await response.text();
|
|
948
|
+
return (0, html_entities.decode)(rawHtml);
|
|
948
949
|
}
|
|
949
950
|
/**
|
|
950
951
|
* Builds the YouTube watch URL for a video ID.
|
|
@@ -1328,12 +1329,12 @@ function l$1(o) {
|
|
|
1328
1329
|
//#endregion
|
|
1329
1330
|
//#region ../../node_modules/.bun/grab-url@1.6.22/node_modules/grab-url/dist/grab-api.es.js
|
|
1330
1331
|
async function i(t) {
|
|
1331
|
-
const { extract: r } = await Promise.resolve().then(() => require("./archiver-web.es-
|
|
1332
|
+
const { extract: r } = await Promise.resolve().then(() => require("./archiver-web.es-g61rskug.js")), o = await r({ archiveBuffer: t }), e = {};
|
|
1332
1333
|
for (const n of o) e[n.path] = n.content;
|
|
1333
1334
|
return e;
|
|
1334
1335
|
}
|
|
1335
1336
|
async function c(t, r) {
|
|
1336
|
-
const { parseHTML: o } = await Promise.resolve().then(() => require("./index-CLlAnStL-
|
|
1337
|
+
const { parseHTML: o } = await Promise.resolve().then(() => require("./index-CLlAnStL-DccNsVM4.js")), { document: e } = o(t);
|
|
1337
1338
|
if (!r || !0 === r) return e;
|
|
1338
1339
|
const n = e.querySelector(r);
|
|
1339
1340
|
return n ? n.innerHTML ?? n.textContent : null;
|
|
@@ -2133,9 +2134,7 @@ function parseArgs() {
|
|
|
2133
2134
|
case "--webshare-pass":
|
|
2134
2135
|
options.websharePass = args[++i];
|
|
2135
2136
|
break;
|
|
2136
|
-
default:
|
|
2137
|
-
if (!arg.startsWith("-") && !options.videoId) options.videoId = arg;
|
|
2138
|
-
break;
|
|
2137
|
+
default: if (!arg.startsWith("-") && !options.videoId) options.videoId = arg;
|
|
2139
2138
|
}
|
|
2140
2139
|
}
|
|
2141
2140
|
return options;
|