Ver código fonte

问题修复

zhangyong 1 ano atrás
pai
commit
42aa7330a4
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      agc_job.py
  2. 2 2
      video_agc/agc_video_method.py

+ 1 - 1
agc_job.py

@@ -130,7 +130,7 @@ schedule.every().day.at("00:10").do(bk_usernames_today)
 
 schedule.every(10).minutes.do(video_start, "cg")
 schedule.every(10).minutes.do(video_start, "gs")
-schedule.every(10).minutes.do(video_start, "bk")
+# schedule.every(10).minutes.do(video_start, "bk")
 
 if __name__ == "__main__":
     while True:

+ 2 - 2
video_agc/agc_video_method.py

@@ -845,9 +845,9 @@ class AgcVidoe():
                 cover = data['cover']
                 audio_title = data['title']
                 if ',' in videos:
-                    videos = videos.split(',')
+                    videos = str(videos).split(',')
                 else:
-                    videos = [videos]
+                    videos = [str(videos)]
                 if srt:
                     # 创建临时字幕文件
                     cls.create_subtitle_file(srt, s_path)