瀏覽代碼

add test notify

ming 3 年之前
父節點
當前提交
48b425c333
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      OpenshotService/openshot_video_generator.py
  2. 1 1
      api/main.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -399,7 +399,7 @@ def video_gen(name_hash,name,text_content, image_urls,multiLang,avatar):
     Ctr_Autosub.generate_subtitles(tmp_video_dir+name_hash+"raw.mp4",'zh',listener_progress,output=tmp_video_dir+name_hash+"script.txt",concurrency=DEFAULT_CONCURRENCY,subtitle_file_format=DEFAULT_SUBTITLE_FORMAT)
     
     sub_dict = parse_script(tmp_video_dir+name_hash+"script.txt")
-    generate_subtitle_image_from_dict(sub_dict)
+    generate_subtitle_image_from_dict(name_hash, sub_dict)
     #sv_path = dir_subtitle + name_hash + '/' + str(script['index'])+'.png'
 
     t = openshot.Timeline(1280, 720, openshot.Fraction(30000, 1000), 44100, 2, openshot.LAYOUT_STEREO)

+ 1 - 1
api/main.py

@@ -545,7 +545,7 @@ def gen_video_long_queue(name_hash,name,text_content, image_urls,avatar,multiLan
         except Exception as e:
             logging.error(traceback.format_exc())
             print('video generation error')
-            notify_group('影片錯誤')
+            notify_group('影片錯誤-測試')
         db['video_queue'].delete(id=top1['id'])
         db.query('UPDATE video_queue_status SET status = 0')