From 38c64996ac6ae780f96de326bf416df5eb8e331a Mon Sep 17 00:00:00 2001 From: Shimon Newman Date: Sat, 22 Apr 2023 22:45:59 +0300 Subject: [PATCH] Update videos.php --- app/workers/videos.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } }