Fix missing thumbnail for some videos

Resolves #239.
This commit is contained in:
Trevor Slocum 2021-09-22 17:40:46 -07:00
parent 970dd7b47a
commit 87fca86b67
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ function videoDimensions($file_location) {
$dimensions = '';
$exit_status = 1;
exec("ffprobe -hide_banner -loglevel error -of csv=p=0 -show_entries stream=width,height $file_location", $dimensions, $exit_status);
exec("ffprobe -hide_banner -loglevel error -of csv=p=0 -select_streams v -show_entries stream=width,height $file_location", $dimensions, $exit_status);
if ($exit_status != 0) {
return array(0, 0);
}