Skip to content

Commit

Permalink
Merge pull request #95 from gromiak/master
Browse files Browse the repository at this point in the history
Regex fix for matching m3u8 progress format
  • Loading branch information
norkunas authored Jun 28, 2019
2 parents 32afb1b + 7c75e59 commit 5858d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/YoutubeDl.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class YoutubeDl
{
const PROGRESS_PATTERN = '#\[download\]\s+(?<percentage>\d+(?:\.\d+)?%)\s+of\s+(?<size>\d+(?:\.\d+)?(?:K|M|G)iB)(?:\s+at\s+(?<speed>\d+(?:\.\d+)?(?:K|M|G)iB/s))?(?:\s+ETA\s+(?<eta>[\d:]{2,8}))#i';
const PROGRESS_PATTERN = '#\[download\]\s+(?<percentage>\d+(?:\.\d+)?%)\s+of\s+[~]?(?<size>\d+(?:\.\d+)?(?:K|M|G)iB)(?:\s+at\s+(?<speed>\d+(?:\.\d+)?(?:K|M|G)iB/s))?(?:\s+ETA\s+(?<eta>[\d:]{2,8}))#i';

const RECODE_VIDEO_FORMATS = ['mp4', 'flv', 'ogg', 'webm', 'mkv', 'avi'];

Expand Down

0 comments on commit 5858d4b

Please sign in to comment.