zhangyong vor 1 Jahr
Ursprung
Commit
7813da8fb7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      video_stitching/video_stitching.py

+ 1 - 1
video_stitching/video_stitching.py

@@ -184,7 +184,7 @@ class VideoStitching():
         # 处理SRT字幕文件
         subtitle_file = f"./video_stitching/video/{srt}.srt"
         Common.logger().info(f"处理SRT字幕文件")
-        if os.path.isfile(subtitle_file):
+        if os.path.exists(subtitle_file):
             with open(subtitle_file, 'r') as file:
                 subtitles = file.read().strip().split('\n\n')
             # 从SRT字幕文件中获取字幕