From c1d1be00c7cace0544c3c6cd152e8c3287b976c4 Mon Sep 17 00:00:00 2001 From: RblSb Date: Thu, 13 Nov 2025 13:43:56 +0300 Subject: Support yt-dlp with js runtimes Also adds server version for standalone clients. Remember to update `RblSb/ytdlp-nodejs` if you use this feature. --- src/Types.hx | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/Types.hx') diff --git a/src/Types.hx b/src/Types.hx index 60ce612..22b6ec2 100644 --- a/src/Types.hx +++ b/src/Types.hx @@ -29,28 +29,35 @@ typedef VideoData = { var ?playerType:PlayerType; } +typedef ServerConfig = Config & { + serverChatHistory:Int, + localAdmins:Bool, + allowProxyIps:Bool, + localNetworkOnly:Bool, + sslKeyPemPath:String, + sslCertPemPath:String, + cacheStorageLimitGiB:Float, + ytDlp:{ + channel:String, jsRuntime:String, + }, +} + typedef Config = { port:Int, channelName:String, maxLoginLength:Int, maxMessageLength:Int, - serverChatHistory:Int, totalVideoLimit:Int, userVideoLimit:Int, requestLeaderOnPause:Bool, unpauseWithoutLeader:Bool, - localAdmins:Bool, - allowProxyIps:Bool, - localNetworkOnly:Bool, - sslKeyPemPath:String, - sslCertPemPath:String, templateUrl:String, youtubeApiKey:String, youtubePlaylistLimit:Int, - cacheStorageLimitGiB:Float, permissions:Permissions, emotes:Array, filters:Array, + ?serverVersion:Int, ?isVerbose:Bool, ?salt:String } -- cgit v1.2.3