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