webpeel 0.20.12 → 0.20.13
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/core/youtube.js +8 -3
- package/package.json +1 -1
package/dist/core/youtube.js
CHANGED
|
@@ -327,12 +327,17 @@ async function getTranscriptViaYtDlp(videoId, preferredLang) {
|
|
|
327
327
|
'--quiet',
|
|
328
328
|
videoUrl,
|
|
329
329
|
];
|
|
330
|
-
|
|
330
|
+
// Pass explicit PATH so yt-dlp is found in Docker containers
|
|
331
|
+
// pip3 installs to /usr/local/bin which may not be in Node's process.env.PATH
|
|
332
|
+
const execEnv = {
|
|
333
|
+
...process.env,
|
|
334
|
+
PATH: `/usr/local/bin:/usr/bin:/bin:${process.env.PATH ?? ''}`,
|
|
335
|
+
};
|
|
336
|
+
const proc = execFile('yt-dlp', args, { timeout: 45000, env: execEnv }, async (err) => {
|
|
331
337
|
try {
|
|
332
338
|
if (err) {
|
|
333
339
|
// yt-dlp not installed, timed out, or failed
|
|
334
|
-
|
|
335
|
-
console.debug('[webpeel]', 'yt-dlp error:', err.message);
|
|
340
|
+
console.error('[webpeel] yt-dlp error:', err.message);
|
|
336
341
|
resolve(null);
|
|
337
342
|
return;
|
|
338
343
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpeel",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.13",
|
|
4
4
|
"description": "Fast web fetcher for AI agents - stealth mode, crawl mode, page actions, structured extraction, PDF parsing, smart escalation from simple HTTP to headless browser",
|
|
5
5
|
"author": "Jake Liu",
|
|
6
6
|
"license": "AGPL-3.0-only",
|