diff --git a/app/workers/videos.php b/app/workers/videos.php index d4e4401ba8..421cf92062 100644 --- a/app/workers/videos.php +++ b/app/workers/videos.php @@ -671,7 +671,10 @@ class VideosV1 extends Worker $attr['resolution'] = $parts[1]; break; case str_contains($parts[0], 'CODECS'): - $attr['codecs'] = $parts[1] . ',' . $attributes[$key + 1]; + $attr['codecs'] = $parts[1]; + if(!empty($attributes[$key + 1])){ + $attr['codecs'] .= ',' . $attributes[$key + 1]; + } break; } }