Skip to content

Commit 244ca7b

Browse files
chore(fmt): auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e1a457f commit 244ca7b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

manim_slides/convert.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,10 +1024,15 @@ def add_click_effect_to_video(
10241024
auto_play_media(movies[0][0], loop=movies[0][2])
10251025

10261026
for movie, _, _ in movies[1:]:
1027-
video_id = xpath(movie.element, ".//p:cNvPr")[0].attrib["id"]
1027+
video_id = xpath(movie.element, ".//p:cNvPr")[0].attrib[
1028+
"id"
1029+
]
10281030
timing = xpath(slide.element, ".//p:timing")[0]
10291031
childTnLst = xpath(timing, ".//p:childTnLst")[0]
1030-
video_nodes = xpath(childTnLst, f'.//p:video//p:spTgt[@spid="{video_id}"]/..')
1032+
video_nodes = xpath(
1033+
childTnLst,
1034+
f'.//p:video//p:spTgt[@spid="{video_id}"]/..',
1035+
)
10311036
for video_node in video_nodes:
10321037
parent = video_node.getparent()
10331038
if parent is not None:
@@ -1037,7 +1042,9 @@ def add_click_effect_to_video(
10371042

10381043
next_ctn_id = 3
10391044
for movie, _, _ in movies[1:]:
1040-
video_id = xpath(movie.element, ".//p:cNvPr")[0].attrib["id"]
1045+
video_id = xpath(movie.element, ".//p:cNvPr")[0].attrib[
1046+
"id"
1047+
]
10411048
next_ctn_id = add_click_effect_to_video(
10421049
slide.element, video_id, next_ctn_id
10431050
)

0 commit comments

Comments
 (0)