Fix dict getting overwritten (#6830)

This commit is contained in:
Nicolas Mowen 2023-06-17 09:31:35 -06:00 committed by GitHub
parent 793fe251b9
commit 09cc4251f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1206,6 +1206,7 @@ def get_video_properties(url, get_duration=False):
# Release the video stream # Release the video stream
video.release() video.release()
result = {"width": round(width), "height": round(height)} result["width"] = round(width)
result["height"] = round(height)
return result return result