From 0592564264fff57ccfd9677957196951f9f1c6cf Mon Sep 17 00:00:00 2001 From: RblSb Date: Sun, 26 Jan 2025 23:22:33 +0300 Subject: Video upload feature And you can play video as soon as upload starts! This is pretty useful for thicc ones. Video will be keeped in cache and will comply cache size limit. I'm also implemented system storage check to change cache limit if it's lower than config value, so upload will be blocked if there is lower than 10MiB available on disk. --- src/utils/YoutubeUtils.hx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils/YoutubeUtils.hx') diff --git a/src/utils/YoutubeUtils.hx b/src/utils/YoutubeUtils.hx index 0bb8016..9df9a51 100644 --- a/src/utils/YoutubeUtils.hx +++ b/src/utils/YoutubeUtils.hx @@ -46,6 +46,8 @@ typedef YoutubeVideoFormat = { ?container:String, ?videoCodec:String, ?audioCodec:String, + ?hasVideo:Bool, + ?hasAudio:Bool, } typedef YouTubeVideoInfo = { -- cgit v1.2.3