From e11bbff8b84a21ae5c3f5413aaa0ee1d0ea64266 Mon Sep 17 00:00:00 2001 From: OsaAjani Date: Fri, 10 Jan 2025 15:10:56 +0000 Subject: [PATCH] deploy: ae03e74184212be3f5bee5fa8449cdb554a33c01 --- _modules/moviepy/video/io/ffmpeg_reader.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/_modules/moviepy/video/io/ffmpeg_reader.html b/_modules/moviepy/video/io/ffmpeg_reader.html index cf4ad9df9..77c571281 100644 --- a/_modules/moviepy/video/io/ffmpeg_reader.html +++ b/_modules/moviepy/video/io/ffmpeg_reader.html @@ -1155,8 +1155,12 @@

Source code for moviepy.video.io.ffmpeg_reader

"""Returns a tuple with a metadata field-value pair given a ffmpeg `-i` command output line. """ - raw_field, raw_value = line.split(":", 1) - return (raw_field.strip(" "), raw_value.strip(" "))

+ info = line.split(":", 1) + if len(info) == 2: + raw_field, raw_value = info + return (raw_field.strip(" "), raw_value.strip(" ")) + else: + return ("", "")
[docs] def video_metadata_type_casting(self, field, value): """Cast needed video metadata fields to other types than the default str."""