feat(youtube): add mediaCache mode and safer stream media extraction (#130)

This commit is contained in:
sudacode authored and GitHub committed 2026-06-27 19:20:18 -07:00
1 parent d199376364
commit 5326ad32f5
52 files changed
+4065 -165

No files matched your search

+8
View File
@@ -122,8 +122,16 @@ export interface AiConfig {
requestTimeoutMs?: number;
}
export type YoutubeMediaCacheMode = 'direct' | 'background';
export interface YoutubeMediaCacheConfig {
mode?: YoutubeMediaCacheMode;
maxHeight?: number;
}
export interface YoutubeConfig {
primarySubLanguages?: string[];
mediaCache?: YoutubeMediaCacheConfig;
}
export interface YoutubeSubgenConfig {