fixed support for latest version of yt-dlp

This commit is contained in:
benson
2023-03-30 19:16:27 +08:00
parent fd774d36aa
commit 899304393a

View File

@@ -44,7 +44,7 @@ class Helper
{
$progressRegex = '#\[download\]\s+' .
'(?<percentage>\d+(?:\.\d+)?%)' . //progress
'\s+of\s+[~]?' .
'\s+of\s+[~]?\s*' .
'(?<filesize>\d+(?:\.\d+)?(?:K|M|G)iB)' . //file size
'(?:\s+at\s+' .
'(?<speed>(\d+(?:\.\d+)?(?:K|M|G)iB/s)|Unknown speed))' . //speed