Use preg_match_all in Video::saveFile

На самом деле там должен был быть и так preg_match_all но видимо какао((
This commit is contained in:
celestora 2023-01-28 00:27:16 +02:00
parent 8dffa8a3f5
commit 63f302b2ab

View file

@ -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");