diff options
| author | RblSb <msrblsb@gmail.com> | 2025-11-13 13:43:56 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-11-13 23:59:57 +0300 |
| commit | c1d1be00c7cace0544c3c6cd152e8c3287b976c4 (patch) | |
| tree | 416b4534a84ee81032cb2c310167c97c900248f9 /src/Types.hx | |
| parent | ee3eddc6b80565f6bb458a1fd8f3a83fdd37d554 (diff) | |
Support yt-dlp with js runtimes
Also adds server version for standalone clients.
Remember to update `RblSb/ytdlp-nodejs` if you use this feature.
Diffstat (limited to 'src/Types.hx')
| -rw-r--r-- | src/Types.hx | 21 |
1 files changed, 14 insertions, 7 deletions
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<Emote>, filters:Array<Filter>, + ?serverVersion:Int, ?isVerbose:Bool, ?salt:String } |
