Fix dict getting overwritten

This commit is contained in:
Nick Mowen 2023-06-17 09:22:58 -06:00
parent 793fe251b9
commit bd62e81018

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