Skip to content

Commit 991c3fc

Browse files
committed
Fix linter errors
1 parent 2180416 commit 991c3fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

auto_editor/subcommands/info.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
from auto_editor.ffwrapper import initFileInfo
99
from auto_editor.lang.json import dump
10+
from auto_editor.make_layers import make_sane_timebase
1011
from auto_editor.timeline import v3
1112
from auto_editor.utils.func import aspect_ratio
1213
from auto_editor.utils.log import Log
1314
from auto_editor.vanparse import ArgumentParser
14-
from auto_editor.make_layers import make_sane_timebase
1515

1616

1717
@dataclass(slots=True)
@@ -69,6 +69,7 @@ class MediaJson(TypedDict, total=False):
6969
subtitle: list[SubtitleJson]
7070
container: ContainerJson
7171
type: Literal["media", "timeline", "unknown"]
72+
recommendedTimebase: str
7273
version: Literal["v1", "v3"]
7374
clips: int
7475

@@ -121,7 +122,9 @@ def main(sys_args: list[str] = sys.argv[1:]) -> None:
121122

122123
if src.videos:
123124
recTb = make_sane_timebase(src.videos[0].fps)
124-
file_info[file]["recommendedTimebase"] = f"{recTb.numerator}/{recTb.denominator}"
125+
file_info[file]["recommendedTimebase"] = (
126+
f"{recTb.numerator}/{recTb.denominator}"
127+
)
125128

126129
for track, v in enumerate(src.videos):
127130
w, h = v.width, v.height

0 commit comments

Comments
 (0)