ming 3 rokov pred
rodič
commit
371ec0a56c

+ 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")