Explorar o código

disable avatar by 18

ming %!s(int64=3) %!d(string=hai) anos
pai
achega
c553b01691
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      OpenshotService/openshot_video_generator.py

+ 2 - 1
OpenshotService/openshot_video_generator.py

@@ -795,7 +795,7 @@ def anchor_video_v2(name_hash,name,text_content, image_urls,multiLang,avatar,fre
                 location_x=0.35,location_y=0.25,position=main_timer, end=clip_duration,ck=ck_anchor,audio=False)
         if avatar==18:
             t.AddClip(anchor_clip_list[idx])
-        audio_list[idx].Close()
+        
 
         img_list[idx] = openshot.FFmpegReader(dir_photo+name_hash+'/'+p)
         img_list[idx].Open()
@@ -813,6 +813,7 @@ def anchor_video_v2(name_hash,name,text_content, image_urls,multiLang,avatar,fre
 
         img_list[idx].Close()
         anchor_list[idx].Close()
+        audio_list[idx].Close()
         
             
         sub_img_list[idx] = [None] * len(sub_list[idx])