Skip to content

Commit

Permalink
No more "subtitle" folder in work dir
Browse files Browse the repository at this point in the history
  • Loading branch information
philpw99 committed Jan 8, 2025
1 parent b45069f commit 736432e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/thread/create_task_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def create_file_task(self, file_path):

# 定义各个路径
audio_save_path = task_work_dir / f"【Audio】{file_name}.wav"
original_subtitle_save_path = task_work_dir / "subtitle" / f"【原始字幕】{file_name}-{cfg.transcribe_model.value.value}{whisper_type}.srt"
original_subtitle_save_path = task_work_dir / f"【原始字幕】{file_name}-{cfg.transcribe_model.value.value}{whisper_type}.srt"
result_subtitle_save_path = file_dir / ( cfg.subtitle_file_prefix.value + file_name + cfg.subtitle_file_suffix.value + "." + cfg.subtitle_output_format.value.value )
video_save_path = file_dir / f"【生成】{Path(file_path).name}"

Expand Down Expand Up @@ -189,7 +189,7 @@ def create_url_task(self, url):

# 定义各个路径
audio_save_path = task_work_dir / f"【Audio】{Path(video_file_path).stem}.wav"
original_subtitle_save_path = task_work_dir / "subtitle" / f"【原始字幕】{cfg.transcribe_model.value.value}-file_name-{whisper_type}.srt" if not subtitle_file_path else subtitle_file_path
original_subtitle_save_path = task_work_dir / f"【原始字幕】{cfg.transcribe_model.value.value}-file_name-{whisper_type}.srt" if not subtitle_file_path else subtitle_file_path
result_subtitle_save_path = task_work_dir / ( cfg.subtitle_file_prefix.value + file_name + cfg.subtitle_file_suffix.value + "." + cfg.subtitle_output_format.value.value )
video_save_path = task_work_dir / f"【生成】{Path(video_file_path).name}"

Expand Down

0 comments on commit 736432e

Please sign in to comment.