Skip to content

Commit

Permalink
fix missing reference for format stream in VideoData
Browse files Browse the repository at this point in the history
  • Loading branch information
yajrendrag committed Dec 11, 2023
1 parent 1b14200 commit e5874a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ignore_video_file_under_size/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, data: str):
if "duration" in stream_data:
self.duration = float(stream_data["duration"])
elif "format" in json.loads(data) and "duration" in json.loads(data)["format"]:
self.duration = float(format_data["duration"])
self.duration = float(json.loads(data)["format"]["duration"])

if not self.width:
raise AssertionError("Unable to determine video width")
Expand Down

0 comments on commit e5874a6

Please sign in to comment.