Files
MoneyPrinterTurbo/app/models/const.py
T
harry0703andalmhajer 8b2e530bec Improve Arabic subtitle support and docs
- cache WebUI locale loading to avoid repeated JSON reads

- add Arabic punctuation and tolerant Arabic subtitle matching

- add Arabic README and fix localhost WebUI URL

- remove small unused code paths and add regression tests

Co-authored-by: almhajer <for-tech@hotmail.com>
2026-05-31 21:22:24 +08:00

31 lines
556 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
PUNCTUATIONS = [
"?",
",",
".",
"、",
";",
":",
"!",
"…",
"?",
",",
"。",
"、",
";",
":",
"!",
"...",
# 阿拉伯语常用标点也应作为自然断句点,避免脚本文本和 edge-tts
# 返回的字幕停顿边界不一致,导致后续逐行匹配失败。
"،",
"؛",
"؟",
]
TASK_STATE_FAILED = -1
TASK_STATE_COMPLETE = 1
TASK_STATE_PROCESSING = 4
FILE_TYPE_VIDEOS = ["mp4", "mov", "mkv", "webm"]
FILE_TYPE_IMAGES = ["jpg", "jpeg", "png", "bmp"]