From 9ee7d42a8bac9c9c4002db0b663f73ec6e624d21 Mon Sep 17 00:00:00 2001 From: LilDosto Date: Wed, 4 Nov 2026 01:30:58 +0300 Subject: [PATCH] fix(kick/live): unbuffered CR/LF stream reader, live FFmpeg & HLS progress, and automatic MP4 remux on stop --- bağlan.bat | 3 + core/downloader.py | 201 ++++++++++++++++++++++++++++++++++----- tests/test_downloader.py | 24 +++++ ui/components.py | 13 ++- ui/tabs/kick_tab.py | 6 ++ ui/tabs/single_tab.py | 1 + 6 files changed, 224 insertions(+), 24 deletions(-) create mode 100644 bağlan.bat diff --git a/bağlan.bat b/bağlan.bat new file mode 100644 index 0000000..97e34fa --- /dev/null +++ b/bağlan.bat @@ -0,0 +1,3 @@ +@echo off +ssh -i "%USERPROFILE%\.ssh\id_ed25519" root@116.202.14.171 +pause \ No newline at end of file diff --git a/core/downloader.py b/core/downloader.py index 519bcf7..beaf218 100644 --- a/core/downloader.py +++ b/core/downloader.py @@ -8,12 +8,18 @@ from core.diagnostics import diagnose class DownloadEngine: _PROGRESS_RE = re.compile( - r"\[PROGRESS\]\s*(?P[\d.]+)(?:%\s*)?\|\s*(?P.*?)\s*\|\s*(?P.*?)\s*\|\s*(?P.*)" + r"\[PROGRESS\]\s*(?P[\d.]+)(?:%\s*)?\|\s*(?P.*?)\s*\|\s*(?P.*?)\s*\|\s*(?P[^|]*)" + r"(?:\|\s*(?P
.*?)\s*\|\s*(?P.*))?" ) _DL_RE = re.compile( r"\[download\]\s+(?P[\d.]+)%\s+of\s+~?(?P\S+)\s+" r"at\s+(?P.*?)\s+ETA\s+(?P\S+)" ) + _FFMPEG_PROGRESS_RE = re.compile( + r"size=\s*(?P\d+)\s*(?P[kKmMgG]?i?[bB])\s+" + r"time=\s*(?P