zhangyong 11 mesiacov pred
rodič
commit
0af54f04b6
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      video_agc/agc_video_method.py

+ 5 - 1
video_agc/agc_video_method.py

@@ -686,7 +686,11 @@ class AgcVidoe():
             try:
                 uid = data['uid']  # 音频id
                 srt = data['text']  # srt
-                videos = data['video'].split(',')
+                videos = data['video']
+                if ',' in videos:
+                    videos = videos.split(',')
+                else:
+                    videos = [videos]
                 if srt:
                     # 创建临时字幕文件
                     cls.create_subtitle_file(srt, s_path)