Skip to content

Commit 4f95a26

Browse files
committed
✨ 更新版本至0.3.5,修改导出文件名处理逻辑(支持自动检测导出文件名来指定导出格式)
1 parent 68bc404 commit 4f95a26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/SimpleCutMainFrame.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from src.model import VideoSequenceModel, VideoModel
1818

19-
VERSION = "0.3.4"
19+
VERSION = "0.3.5"
2020

2121

2222
class FileDropTarget(wx.FileDropTarget):
@@ -231,8 +231,9 @@ def export_video_file(self, export_amix, export_mbps, export_name):
231231
console_command += filter_complex_string + f'"{";".join(filter_complex_filters)}"'
232232
console_command += ' -map "[v]" -map "[a]"'
233233
# 拼接全指令
234-
if not export_name.endswith(".mp4"):
235-
export_name += ".mp4"
234+
if os.path.split(export_name)[1] == '':
235+
export_name += '.mp4'
236+
236237
console_command += f' -b:v {export_mbps}M "{export_name}"'
237238
logging.info(f"导出命令:{console_command}")
238239

0 commit comments

Comments
 (0)