ming преди 3 години
родител
ревизия
371ec0a56c
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      OpenshotService/openshot_video_generator.py

+ 4 - 4
OpenshotService/openshot_video_generator.py

@@ -867,8 +867,8 @@ def anchor_video_v2(name_hash,name,text_content, image_urls,multiLang,avatar,fre
         print("THIS IS TRIAL")
         wm = openshot.QtImageReader(dir_video+"freeTrialWatermark.png")
         wm.Open()     
-        wm = video_photo_clip(wm,layer=6,position=0,end=int(head_duration+main_timer))
-        t.AddClip(wm)
+        wm_clip = video_photo_clip(wm,layer=6,position=0,end=int(head_duration+main_timer+ED_duration))
+        t.AddClip(wm_clip)
         
     else:
         print("THIS IS NOT TRIAL")
@@ -1016,8 +1016,8 @@ def anchor_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar,f
     if freeTrial==1:
         wm = openshot.QtImageReader(dir_video+"freeTrialWatermark.png")
         wm.Open()     
-        wm = video_photo_clip(wm,layer=6,position=0,end=int(head_duration+main_timer+ED_duration))
-        t.AddClip(wm)
+        wm_clip = video_photo_clip(wm,layer=6,position=0,end=int(head_duration+main_timer+ED_duration))
+        t.AddClip(wm_clip)
         print("THIS IS TRIAL")
     else:
         print("THIS IS NOT TRIAL")