diff options
| author | RblSb <msrblsb@gmail.com> | 2026-04-15 08:39:38 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2026-04-15 08:39:38 +0300 |
| commit | b9a32c8565771342b3504249898892e3fa7d4cba (patch) | |
| tree | f8aca575fbd9c51407b874dcd9bc78b16a55c687 /src/server | |
| parent | 276e12db29ab31aa002f55b1a3cc69f170c1a2c2 (diff) | |
Use js-runtimes on yt-dlp info request
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/cache/YoutubeCache.hx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/cache/YoutubeCache.hx b/src/server/cache/YoutubeCache.hx index 158cfe1..09ab67b 100644 --- a/src/server/cache/YoutubeCache.hx +++ b/src/server/cache/YoutubeCache.hx @@ -223,8 +223,9 @@ class YoutubeCache { } function getInfoAsync(url:String, useCookies = false):Promise<VideoInfo> { - return cast ytDlp.getInfoAsync(url, { + return cast ytDlp.getInfoAsync(url, cast { cookies: useCookies ? getCookiesPathOrNull() : null, + additionalOptions: ["--no-js-runtimes", "--js-runtimes", main.config.ytDlp.jsRuntime], }); } |
