Repository Analysis

harry0703/MoneyPrinterTurbo

利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.

12.1 Low AI signal View on GitHub
12.1
Adjusted Score
12.1
Raw Score
100%
Time Factor
2026-05-30
Last Push
70,524
Stars
Python
Language
13,145
Lines of Code
64
Files
156
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 8LOW 148

Pattern Findings

156 matches across 8 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers68 hits · 66 pts
SeverityFileLineSnippet
LOWapp/asgi.py25def validation_exception_handler(request: Request, e: RequestValidationError):
LOWapp/config/config.py51def _decode_linux_route_gateway(hex_gateway: str) -> str:
LOWapp/config/config.py65def get_container_default_gateway_ip(route_path: str = "/proc/net/route") -> str:
LOWapp/config/config.py99def get_default_ollama_base_url() -> str:
LOWapp/utils/utils.py134def time_convert_seconds_to_hmsm(seconds) -> str:
LOWapp/utils/utils.py165def split_string_by_punctuations(s):
LOWapp/utils/file_security.py4def resolve_path_within_directory(
LOWapp/controllers/v1/video.py63def _sanitize_upload_filename(filename: str, request_id: str) -> str:
LOWapp/controllers/v1/video.py76def _resolve_path_within_directory(base_dir: str, unsafe_path: str, request_id: str) -> str:
LOWapp/controllers/v1/video.py318def upload_video_material_file(request: Request, file: UploadFile = File(...)):
LOWapp/services/llm.py37def _extract_chat_completion_text(response, llm_provider: str) -> str:
LOWapp/services/voice.py1265def ensure_legacy_submaker_fields(sub_maker: SubMaker) -> SubMaker:
LOWapp/services/voice.py1280def populate_legacy_submaker_with_full_text(
LOWapp/services/voice.py1352def create_edge_tts_communicate(
LOWapp/services/voice.py1376def get_edge_tts_timeout_seconds() -> Union[float, None]:
LOWapp/services/voice.py1409def _stream_edge_tts_sync_with_timeout(
LOWapp/services/voice.py1712 def _format_duration_to_offset(duration) -> int:
LOWapp/services/voice.py1736 def speech_synthesizer_word_boundary_cb(evt: speechsdk.SessionEventArgs):
LOWapp/services/voice.py2033def _build_subtitle_formatter():
LOWapp/services/voice.py2109def _build_subtitle_items_from_edge_cues(
LOWapp/services/voice.py2164def _build_subtitle_items_from_legacy_submaker(
LOWapp/services/voice.py2239def _get_audio_duration_from_submaker(sub_maker: SubMaker):
LOWapp/services/video.py84def _escape_ffmpeg_concat_path(file_path: str) -> str:
LOWapp/services/video.py89def concat_video_clips_with_ffmpeg(
LOWapp/services/video.py148def _open_image_clip_with_fallback(image_path: str):
LOWapp/services/video.py568 def resolve_subtitle_background_color():
LOWapp/services/state.py136 def _convert_to_original_type(value):
LOWtest/services/test_voice.py223 def test_gemini_tts_uses_legacy_submaker_fields(self):
LOWtest/services/test_voice.py291 def test_mimo_tts_uses_openai_compatible_audio_response(self):
LOWtest/services/test_voice.py382 def test_generate_subtitle_keeps_edge_provider_for_gemini_legacy_submaker(self):
LOWtest/services/test_voice.py419 def test_script_split_keeps_thousand_separator_comma(self):
LOWtest/services/test_voice.py440 def test_edge_cue_aggregation_handles_thousand_separator_comma(self):
LOWtest/services/test_voice.py473 def test_convert_rate_to_percent_signs_zero_rate(self):
LOWtest/services/test_task.py21 def test_task_local_materials(self):
LOWtest/services/test_llm.py27 def test_litellm_provider_returns_normalized_text(self):
LOWtest/services/test_llm.py56 def test_litellm_provider_requires_model_name(self):
LOWtest/services/test_llm.py64 def test_litellm_provider_handles_empty_response(self):
LOWtest/services/test_llm.py77 def test_litellm_provider_handles_empty_message(self):
LOWtest/services/test_llm.py97 def test_openai_provider_still_uses_existing_path(self):
LOWtest/services/test_llm.py109 def test_grok_provider_still_uses_existing_path(self):
LOWtest/services/test_llm.py159 def test_ollama_default_base_url_uses_localhost_outside_container(self):
LOWtest/services/test_llm.py168 def test_ollama_default_base_url_uses_host_gateway_inside_container(self):
LOWtest/services/test_llm.py181 def test_ollama_default_base_url_falls_back_to_container_gateway(self):
LOWtest/services/test_llm.py195 def test_ollama_explicit_base_url_takes_precedence(self):
LOWtest/services/test_llm.py204 def test_mimo_provider_uses_openai_compatible_client(self):
LOWtest/services/test_llm.py246 def test_azure_provider_uses_azure_client_directly(self):
LOWtest/services/test_llm.py333 def test_container_detection_ignores_plain_linux_cgroup_file(self):
LOWtest/services/test_llm.py349 def test_container_detection_accepts_dockerenv_marker(self):
LOWtest/services/test_llm.py362 def test_container_detection_accepts_cgroup_container_marker(self):
LOWtest/services/test_llm.py378 def test_container_gateway_ip_decodes_default_route(self):
LOWtest/services/test_llm.py392 def test_container_gateway_ip_ignores_missing_default_route(self):
LOWtest/services/test_llm.py422 def test_live_litellm_completion(self):
LOWtest/services/test_material.py26 def test_search_pexels_uses_tls_verification_by_default(self):
LOWtest/services/test_material.py58 def test_search_pixabay_allows_explicit_tls_disable_for_proxy(self):
LOWtest/services/test_material.py89 def test_save_video_uses_tls_verification_by_default(self):
LOWtest/services/test_material.py116 def test_download_videos_accepts_plain_string_concat_mode(self):
LOWtest/services/test_video.py43 def test_task_query_returns_relative_task_url_without_mutating_state(self):
LOWtest/services/test_video.py70 def test_in_memory_task_manager_rejects_when_queue_is_full(self):
LOWtest/services/test_video.py126 def test_preprocess_video_rejects_material_outside_local_videos(self):
LOWtest/services/test_video.py137 def test_get_bgm_file_accepts_song_directory_filename(self):
8 more matches not shown…
Excessive Try-Catch Wrapping46 hits · 49 pts
SeverityFileLineSnippet
LOWapp/config/config.py142 except Exception as e:
LOWapp/utils/utils.py53 except Exception as e:
LOWapp/utils/utils.py126 except Exception as e:
LOWapp/utils/utils.py220 except Exception:
MEDIUMapp/utils/utils.py25def to_json(obj):
MEDIUMapp/utils/utils.py123def run():
MEDIUMapp/utils/utils.py213def get_system_locale():
LOWapp/services/material.py106 except Exception as e:
LOWapp/services/material.py162 except Exception as e:
LOWapp/services/material.py209 except Exception as e:
LOWapp/services/material.py213 except Exception as remove_error:
LOWapp/services/material.py221 except Exception as close_error:
LOWapp/services/material.py290 except Exception as e:
LOWapp/services/llm.py224 except Exception as e:
LOWapp/services/llm.py469 except Exception as e:
LOWapp/services/llm.py535 except Exception as e:
LOWapp/services/llm.py591 except Exception as e:
LOWapp/services/llm.py598 except Exception as e:
LOWapp/services/subtitle.py39 except Exception as e:
MEDIUMapp/services/voice.py1428def _produce_chunks():
LOWapp/services/voice.py39 except Exception as exc:
LOWapp/services/voice.py1433 except Exception as e:
LOWapp/services/voice.py1548 except Exception as e:
LOWapp/services/voice.py1556 except Exception as remove_error:
LOWapp/services/voice.py1675 except Exception as e:
LOWapp/services/voice.py1699 except Exception as e:
LOWapp/services/voice.py1795 except Exception as e:
LOWapp/services/voice.py1893 except Exception as e:
LOWapp/services/voice.py1916 except Exception as e:
LOWapp/services/voice.py2015 except Exception as e:
LOWapp/services/voice.py2102 except Exception as e:
LOWapp/services/voice.py2235 except Exception as e:
LOWapp/services/voice.py2265 except Exception as e:
LOWapp/services/video.py78 except Exception as exc:
LOWapp/services/video.py152 except Exception as exc:
LOWapp/services/video.py221 except Exception as e:
LOWapp/services/video.py234 except Exception as e:
LOWapp/services/video.py429 except Exception as e:
LOWapp/services/video.py663 except Exception as e:
LOWapp/services/video.py720 except Exception:
LOWapp/services/video.py726 except Exception as exc:
LOWapp/services/video.py773 except Exception:
LOWtest/services/test_video.py311 except Exception as e:
LOWwebui/Main.py151 except Exception as e:
LOWwebui/Main.py1208 except Exception:
MEDIUMwebui/Main.py134def open_task_folder(task_id):
Deep Nesting20 hits · 17 pts
SeverityFileLineSnippet
LOWapp/utils/utils.py25
LOWapp/utils/utils.py224
LOWapp/utils/utils.py28
LOWapp/services/material.py55
LOWapp/services/material.py112
LOWapp/services/material.py168
LOWapp/services/material.py228
LOWapp/services/llm.py55
LOWapp/services/llm.py547
LOWapp/services/subtitle.py21
LOWapp/services/subtitle.py145
LOWapp/services/subtitle.py193
LOWapp/services/voice.py1188
LOWapp/services/voice.py1409
LOWapp/services/voice.py1509
LOWapp/services/voice.py1564
LOWapp/services/voice.py1705
LOWapp/services/voice.py1921
LOWapp/services/video.py190
LOWapp/services/video.py295
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippet
LOWconfig.example.toml1[app]
LOWconfig.example.toml21# For example: pexels_api_keys = ["123adsf4567adf89","abd1321cd13efgfdfhi"]
LOWconfig.example.toml41# oneapi
LOWconfig.example.toml61ollama_base_url = ""
LOWconfig.example.toml81moonshot_model_name = "moonshot-v1-8k"
LOWconfig.example.toml161# Use this for providers not directly supported above: Anthropic (native API),
LOWconfig.example.toml181#
LOWconfig.example.toml201# Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.
LOWconfig.example.toml281[siliconflow]
LOWdocker-compose.gpu.yml1# GPU override file
LOWwebui.sh1# If you could not download the model from the official site, you can use the mirror site.
LOWapp/config/__init__.py41 colorize=True,
LOWtest/services/__init__.py1# Unit test package for services
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMapp/utils/utils.py27 # Define a helper function to handle different types of objects
MEDIUMapp/services/video.py744 # Create an image clip and set its duration to 3 seconds
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMwebui.sh1# If you could not download the model from the official site, you can use the mirror site.
Unused Imports4 hits · 3 pts
SeverityFileLineSnippet
LOWapp/config/__init__.py7
LOWapp/services/voice.py18
LOWapp/services/voice.py1821
LOWtest/services/test_voice.py4
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippet
LOWapp/controllers/manager/base_manager.py46 def execute_task(self, func: Callable, *args: Any, **kwargs: Any):
LOWapp/controllers/manager/base_manager.py52 def run_task(self, func: Callable, *args: Any, **kwargs: Any):