File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments