Illicit suggestion

This commit is contained in:
Toke Stuart Jepsen 2024-01-29 09:17:07 +00:00
parent ce601d0ad4
commit e6818f94f5

View file

@ -445,7 +445,11 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
# Set video input attributes
max_int = str(2147483647)
video_data = get_ffprobe_data(video_file_path, logger=self.log)
duration = float(video_data["streams"][0]["duration"])
duration = max(
float(stream.get("duration", 0))
for stream in video_data["streams"]
if stream.get("codec_type") == "video"
)
cmd_args = [
"-y",