mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Use preg_match_all in Video::saveFile
На самом деле там должен был быть и так preg_match_all но видимо какао((
This commit is contained in:
parent
8dffa8a3f5
commit
63f302b2ab
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Video extends Media
|
|||
throw new \DomainException("$filename does not contain any video streams");
|
||||
|
||||
$durations = [];
|
||||
preg_match('%duration=([0-9\.]++)%', $streams, $durations);
|
||||
preg_match_all('%duration=([0-9\.]++)%', $streams, $durations);
|
||||
if(sizeof($durations[1]) === 0)
|
||||
throw new \DomainException("$filename does not contain any meaningful video streams");
|
||||
|
||||
|
|
Loading…
Reference in a new issue