mirror of
https://github.com/YaoFANGUK/video-subtitle-remover.git
synced 2026-05-07 18:27:29 +08:00
初步支持 macOS (Apple Silicon)
升级至PP-OCRv5 Tested with Python 3.13 感谢用户 "期望" 提供的macOS设备用于开发测试
This commit is contained in:
@@ -37,9 +37,11 @@ def is_video_or_image(filename):
|
||||
# 检查扩展名是否在定义的视频或图片文件后缀集合中
|
||||
return file_extension in video_extensions or file_extension in image_extensions
|
||||
|
||||
def merge_big_file_if_not_exists(dir, file):
|
||||
def merge_big_file_if_not_exists(dir, file, man_filename = None):
|
||||
if file not in os.listdir(dir):
|
||||
fs = Filesplit()
|
||||
if man_filename is not None:
|
||||
fs.man_filename = man_filename
|
||||
fs.merge(input_dir=dir)
|
||||
|
||||
def get_readable_path(path):
|
||||
|
||||
Reference in New Issue
Block a user