MCPcopy Create free account

hub / github.com/harry0703/MoneyPrinterTurbo / functions

Functions428 in github.com/harry0703/MoneyPrinterTurbo

Methodcheck_status
Check the status of an upload request. Args: request_id (str): The request ID from upload Returns:
app/services/upload_post.py:104
Methodclose
(self)
test/services/test_video.py:392
Methodclose
(self)
test/services/test_material.py:104
Functioncombine_videos
( combined_video_path: str, video_paths: List[str], audio_file: str, video_aspect: VideoAspect
app/services/video.py:500
Methodcreate
(self, **kwargs)
test/services/test_voice.py:424
Functioncreate_audio
( background_tasks: BackgroundTasks, request: Request, body: AudioRequest )
app/controllers/v1/video.py:130
Methodcreate_queue
(self)
app/controllers/manager/memory_manager.py:8
Methodcreate_queue
(self)
app/controllers/manager/redis_manager.py:26
Functioncreate_subtitle
( background_tasks: BackgroundTasks, request: Request, body: SubtitleRequest )
app/controllers/v1/video.py:123
Functioncreate_video
( background_tasks: BackgroundTasks, request: Request, body: TaskVideoRequest )
app/controllers/v1/video.py:116
Functioncross_post_video
Convenience function to cross-post a video. Args: video_path (str): Path to the video file title (str): Video title/capt
app/services/upload_post.py:137
Methoddelete_task
(self, task_id: str)
app/services/state.py:56
Functiondelete_video
(request: Request, task_id: str = Path(..., description="Task ID"))
app/controllers/v1/video.py:217
Methoddequeue
(self)
app/controllers/manager/memory_manager.py:14
Methoddequeue
(self)
app/controllers/manager/redis_manager.py:43
Functiondownload_video
download video :param request: Request request :param file_path: video file path, eg: /cd1727ed-3473-42a2-a7da-4faafafec72b/final-1.mp4
app/controllers/v1/video.py:381
Methodduration
(self)
test/services/test_video.py:400
Methodduration
(self)
test/services/test_video.py:422
Methodenqueue
(self, task: Dict)
app/controllers/manager/memory_manager.py:11
Methodenqueue
(self, task: Dict)
app/controllers/manager/redis_manager.py:29
Functionexception_handler
(request: Request, e: HttpException)
app/asgi.py:18
Functionfadein_transition
(clip: Clip, t: float)
app/services/utils/video_effects.py:5
Functionfadeout_transition
(clip: Clip, t: float)
app/services/utils/video_effects.py:10
Methodfake_generate_response
(prompt)
test/services/test_llm.py:86
Methodfake_run
(command, capture_output, text, check)
test/services/test_video.py:296
Methodfake_run
(command, capture_output, text, check)
test/services/test_voice.py:71
Functionfont_dir
(sub_dir: str = "")
app/utils/utils.py:98
Functionformat_record
(record)
app/config/__init__.py:17
Functionformat_record
(record)
webui/Main.py:184
Functiongenerate_social_metadata
生成短视频发布文案元数据。 返回结构固定为 `{"title": str, "caption": str, "hashtags": List[str]}`。 如果 LLM 不可用或返回格式异常,会降级为通用启发式结果,保证 API 调用方始终拿到可展示、可发布前编
app/services/llm.py:976
Functiongenerate_video
( video_path: str, audio_path: str, subtitle_path: str, output_file: str, params: VideoPar
app/services/video.py:796
Functiongenerate_video_script
(request: Request, body: VideoScriptRequest)
app/controllers/v1/llm.py:25
Functiongenerate_video_social_metadata
( request: Request, body: VideoSocialMetadataRequest )
app/controllers/v1/llm.py:57
Functiongenerate_video_terms
(request: Request, body: VideoTermsRequest)
app/controllers/v1/llm.py:42
Functionget_all_songs
()
webui/Main.py:133
Functionget_all_tasks
(request: Request, page: int = Query(1, ge=1), page_size: int = Query(10, ge=1))
app/controllers/v1/video.py:167
Methodget_all_tasks
(self, page: int, page_size: int)
app/services/state.py:28
Methodget_all_tasks
(self, page: int, page_size: int)
app/services/state.py:68
Functionget_bgm_list
(request: Request)
app/controllers/v1/video.py:238
Functionget_default_ollama_base_url
返回 Ollama 的默认 OpenAI-compatible base_url。 用户显式配置 `ollama_base_url` 时不会走这里;这里只处理“未配置时的 最佳默认值”。容器内默认指向宿主机,普通本机运行默认指向 localhost。
app/config/config.py:99
Functionget_ffmpeg_binary
解析当前进程应该使用的 FFmpeg 可执行文件。 增加原因: 1. 视频编码、静音音频生成、pydub 音频转码都依赖 FFmpeg; 2. Windows 便携包、Docker 和用户自定义安装目录经常出现 PATH 不一致; 3. 集中解析可以让所有
app/utils/utils.py:125
Functionget_ffmpeg_binary
兼容历史上直接从 video 服务读取 FFmpeg 路径的调用方。 真正的解析逻辑已经抽到 `app.utils.utils.get_ffmpeg_binary()`,视频、语音 和后续新增链路都应复用同一套优先级;这里保留薄包装,避免外部脚本或 旧测试直接导入
app/services/video.py:126
Functionget_gemini_voices
获取Gemini TTS的声音列表 Returns: 声音列表,格式为 ["gemini:Zephyr-Female", "gemini:Puck-Male", ...]
app/services/voice.py:85
Functionget_mimo_voices
获取 Xiaomi MiMo V2.5 TTS 的预置音色列表。 当前只接入官方文档里的 `mimo-v2.5-tts` 预置音色模式。音色设计 `mimo-v2.5-tts-voicedesign` 和音色复刻 `mimo-v2.5-tts-voiceclone`
app/services/voice.py:118
Functionget_response
(status: int, data: Any = None, message: str = "")
app/utils/utils.py:17
Functionget_siliconflow_voices
获取硅基流动的声音列表 Returns: 声音列表,格式为 ["siliconflow:FunAudioLLM/CosyVoice2-0.5B:alex", ...]
app/services/voice.py:59
Functionget_system_locale
()
app/utils/utils.py:285
Functionget_task
( request: Request, task_id: str = Path(..., description="Task ID"), query: TaskQueryRequest = Dep
app/controllers/v1/video.py:183
Methodget_task
(self, task_id: str)
app/services/state.py:53
Methodget_task
(self, task_id: str)
app/services/state.py:121
Functionget_uuid
(remove_hyphen: bool = False)
app/utils/utils.py:61
Functionget_video_materials_list
(request: Request)
app/controllers/v1/video.py:285
Methodis_queue_empty
(self)
app/controllers/manager/memory_manager.py:17
Methodis_queue_empty
(self)
app/controllers/manager/redis_manager.py:60
Functionload_locales
(i18n_dir)
app/utils/utils.py:297
Functionlog_received
(msg)
webui/Main.py:1477
Functionmake_textclip
(text)
app/services/video.py:941
Functionmd5
(text)
app/utils/utils.py:279
Functionnormalize_script_for_subtitle_matching
清理字幕匹配前的脚本文本。 用户可能手动输入 Markdown 分隔符、标题强调或 `_` 这类格式符号。 这些字符通常不会出现在 TTS/Whisper 的识别结果里;如果继续参与 字幕逐行匹配,脚本行数量会大于真实字幕行数量,最终可能补出 `00:00
app/utils/utils.py:246
Functionparse_extension
(filename)
app/utils/utils.py:310
Functionping
(request: Request)
app/controllers/ping.py:12
Functionposition
(current_time: float)
app/services/utils/video_effects.py:21
Functionpreprocess_video
(materials: List[MaterialInfo], clip_duration=4)
app/services/video.py:992
Functionpublic_dir
(sub_dir: str = "")
app/utils/utils.py:116
Methodqueue_size
(self)
app/controllers/manager/memory_manager.py:20
Methodqueue_size
(self)
app/controllers/manager/redis_manager.py:63
Functionresolve_path_within_directory
( base_dir: str, unsafe_path: str, *, require_file: bool = True, )
app/utils/file_security.py:4
Functionrun
()
app/utils/utils.py:162
Functionrun_in_background
(func, *args, **kwargs)
app/utils/utils.py:161
Methodrun_task
(self, func: Callable, *args: Any, **kwargs: Any)
app/controllers/manager/base_manager.py:52
Functionsave_config
()
app/config/config.py:150
Functionsearch_videos_coverr
Coverr (https://coverr.co) - free HD/4K stock videos, subject to Coverr license terms (https://coverr.co/license). Coverr API notes (bas
app/services/material.py:168
Functionsearch_videos_pexels
( search_term: str, minimum_duration: int, video_aspect: VideoAspect = VideoAspect.portrait, )
app/services/material.py:55
Functionsearch_videos_pixabay
( search_term: str, minimum_duration: int, video_aspect: VideoAspect = VideoAspect.portrait, )
app/services/material.py:112
MethodsetUp
(self)
test/services/test_llm.py:118
MethodsetUp
(self)
test/services/test_llm.py:844
MethodsetUp
(self)
test/services/test_video.py:36
MethodsetUp
(self)
test/services/test_video.py:83
MethodsetUp
(self)
test/services/test_voice.py:41
MethodsetUp
(self)
test/services/test_material.py:18
MethodsetUp
(self)
test/services/test_material.py:139
MethodsetUp
(self)
test/services/test_task.py:16
Functionshutdown_event
()
app/asgi.py:76
Functionslidein_transition
(clip: Clip, t: float, side: str)
app/services/utils/video_effects.py:15
Functionslideout_transition
(clip: Clip, t: float, side: str)
app/services/utils/video_effects.py:44
Functionsong_dir
(sub_dir: str = "")
app/utils/utils.py:107
Functionspeech_synthesizer_word_boundary_cb
(evt: speechsdk.SessionEventArgs)
app/services/voice.py:861
Functionsplit_string_by_punctuations
(s)
app/utils/utils.py:204
Functionstartup_event
()
app/asgi.py:81
Functionstr_contains_punctuation
(word)
app/utils/utils.py:197
Functionstream_video
(request: Request, file_path: str)
app/controllers/v1/video.py:338
Functiontask_dir
(sub_dir: str = "")
app/utils/utils.py:89
MethodtearDown
(self)
test/services/test_llm.py:121
MethodtearDown
(self)
test/services/test_llm.py:851
MethodtearDown
(self)
test/services/test_video.py:39
MethodtearDown
(self)
test/services/test_video.py:89
MethodtearDown
(self)
test/services/test_voice.py:45
MethodtearDown
(self)
test/services/test_material.py:22
MethodtearDown
(self)
test/services/test_material.py:143
MethodtearDown
(self)
test/services/test_task.py:19
← previousnext →201–300 of 428, ranked by callers