A practical Douyin downloader for both single-item and profile batch downloads, with progress display, retries, SQLite deduplication, and browser fallback support. 抖音批量下载工具,去水印,支持视频、图集、合集、音乐(原声)。
This report presents the forensic synthetic code analysis of jiji262/douyin-downloader, a Python project with 9,525 GitHub stars. SynthScan v2.0 examined 35,292 lines of code across 152 source files, recording 1077 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 44.6 places this repository in the Strong AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1077 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/cookie_fetcher.py | 229 | async def wait_for_login_confirmation(page: Any, url: str, input_func: Any = input) -> None: | CODE |
| LOW | tools/cookie_fetcher.py | 335 | def extract_ms_token_from_text(text: str) -> Optional[str]: | STRING |
| LOW | core/user_downloader.py | 153 | async def _save_homepage_screenshot( | CODE |
| LOW | core/user_downloader.py | 196 | async def _resolve_user_info_logged(self, sec_uid: str, modes: List[str]) -> Dict[str, Any]: | CODE |
| LOW | core/user_downloader.py | 467 | async def _recover_user_post_with_browser( | CODE |
| LOW | core/user_downloader.py | 622 | def _post_recovery_limit_reached( | CODE |
| LOW | core/mix_downloader.py | 12 | def derive_mix_collection_dir(mix_detail: Optional[Dict[str, Any]], mix_id: Any) -> str: | CODE |
| LOW | core/transcript_manager.py | 50 | def resolve_api_key_with_source( | CODE |
| LOW | core/transcript_manager.py | 317 | async def _call_openai_transcription( | CODE |
| LOW | core/transcript_manager.py | 382 | def _guess_video_content_type(video_path: Path) -> str: | CODE |
| LOW | core/retry_executor.py | 70 | def _derive_url_type_for_factory(url_type: Optional[str]) -> str: | CODE |
| LOW⚡ | core/api_client.py | 1784 | async def _extract_aweme_ids_from_page(self, page) -> List[str]: | CODE |
| LOW | core/api_client.py | 561 | def _payload_from_bridge_result(self, result: Any, path: str, started: float) -> Dict[str, Any]: | CODE |
| LOW | core/api_client.py | 631 | def _normalize_paged_response( | CODE |
| LOW | core/api_client.py | 832 | async def _build_collect_page_params(self, max_cursor: int, count: int) -> Dict[str, Any]: | CODE |
| LOW | core/api_client.py | 997 | def _normalize_live_room_response(raw: Dict[str, Any]) -> Optional[Dict[str, Any]]: | CODE |
| LOW | core/api_client.py | 1028 | def _extract_live_room_from_html(html: str) -> Optional[Dict[str, Any]]: | CODE |
| LOW | core/api_client.py | 1044 | async def _fetch_live_room_from_page(self, web_rid: str) -> Optional[Dict[str, Any]]: | CODE |
| LOW | core/api_client.py | 1327 | async def get_aweme_comment_replies( | CODE |
| LOW | core/api_client.py | 1386 | async def save_user_homepage_screenshot( | CODE |
| LOW | core/api_client.py | 1500 | def _emit_homepage_screenshot_request( | CODE |
| LOW | core/api_client.py | 1532 | async def collect_user_post_ids_via_browser( | CODE |
| LOW | core/api_client.py | 1758 | def pop_browser_post_aweme_items(self) -> Dict[str, Dict[str, Any]]: | CODE |
| LOW⚡ | core/api_client.py | 1825 | async def _wait_for_manual_verification(self, page, *, wait_timeout_seconds: int) -> None: | STRING |
| LOW | core/video_downloader.py | 59 | async def _collect_comments_for_existing_video(self, aweme_data: Dict[str, Any]) -> bool: | CODE |
| LOW | core/downloader_base.py | 162 | def _report_author_output_dir( | CODE |
| LOW | core/downloader_base.py | 269 | def _redownload_missing_files_enabled(self) -> bool: | CODE |
| LOW | core/downloader_base.py | 275 | async def _ensure_local_aweme_index(self) -> None: | CODE |
| LOW | core/downloader_base.py | 330 | def _mark_local_aweme_downloaded(self, aweme_id: str): | CODE |
| LOW | core/downloader_base.py | 440 | def _build_aweme_file_context( | CODE |
| LOW | core/downloader_base.py | 496 | async def _collect_comments_for_existing_aweme( | CODE |
| LOW | core/downloader_base.py | 865 | async def _download_video_with_fallback( | CODE |
| LOW | core/downloader_base.py | 927 | async def _run_within_item_deadline(self, awaitable, save_path: Path) -> bool: | CODE |
| LOW | core/downloader_base.py | 941 | async def _download_first_available( | CODE |
| LOW | core/downloader_base.py | 1020 | def _build_video_url_candidates( | CODE |
| LOW | core/downloader_base.py | 1057 | def _partition_video_candidates( | CODE |
| LOW | core/downloader_base.py | 1147 | async def _maybe_promote_original_candidate( | CODE |
| LOW | core/downloader_base.py | 1192 | async def _probe_original_play_source( | CODE |
| LOW | core/downloader_base.py | 1306 | def _pick_highest_quality_play_addr(video: Dict[str, Any]) -> Optional[Dict[str, Any]]: | CODE |
| LOW | core/downloader_base.py | 1315 | def _pick_play_addr_by_quality( | CODE |
| LOW | core/downloader_base.py | 1366 | def _pick_preferred_play_addr( | CODE |
| LOW | core/downloader_base.py | 1403 | def _collect_image_url_candidates(self, aweme_data: Dict[str, Any]) -> List[List[str]]: | CODE |
| LOW | core/downloader_base.py | 1485 | def _collect_ranked_media_urls(*sources: Tuple[Any, Any, int]) -> List[str]: | CODE |
| LOW | core/downloader_base.py | 1542 | def _is_watermarked_media_url(url: str) -> bool: | CODE |
| LOW | core/user_modes/post_strategy.py | 123 | def _time_boundary_for_config(self) -> PostTimeBoundary: | CODE |
| LOW | core/user_modes/post_strategy.py | 151 | def _report_time_boundary_stop(self, page_number: int, raw_items_seen: int) -> None: | CODE |
| LOW | core/user_modes/post_strategy.py | 264 | def _empty_page_is_restricted(page: Dict[str, Any], request_cursor: int) -> bool: | CODE |
| LOW | core/user_modes/base_strategy.py | 72 | def _media_type_filter_enabled(self) -> bool: | CODE |
| LOW | config/config_loader.py | 134 | def _is_key_explicit_in_sources(sources: List[Dict[str, Any]], section: str, key: str) -> bool: | CODE |
| LOW | config/config_loader.py | 289 | def _candidate_auto_cookie_paths(self) -> List[Path]: | CODE |
| LOW | auth/ms_token_manager.py | 136 | def _extract_ms_token_from_headers(headers: Any) -> Optional[str]: | CODE |
| LOW | tests/test_live_replay_remux.py | 90 | async def test_remux_falls_back_to_path_ffmpeg(monkeypatch, tmp_path: Path): | CODE |
| LOW | tests/test_live_replay_remux.py | 115 | async def test_remux_timeout_kills_reaps_and_removes_partial_output(monkeypatch, tmp_path: Path): | CODE |
| LOW | tests/test_live_replay_remux.py | 142 | async def test_remux_subprocess_error_kills_reaps_and_removes_partial_output( | CODE |
| LOW | tests/test_live_replay_remux.py | 167 | async def test_remux_cancellation_kills_reaps_and_removes_partial_output( | CODE |
| LOW⚡ | tests/test_api_client.py | 14 | def test_default_query_uses_existing_ms_token(): | CODE |
| LOW⚡ | tests/test_api_client.py | 20 | def test_build_signed_path_fallbacks_to_xbogus_when_abogus_disabled(): | CODE |
| LOW⚡ | tests/test_api_client.py | 27 | def test_build_signed_path_accepts_absolute_base_override(): | CODE |
| LOW⚡ | tests/test_api_client.py | 949 | async def test_bridge_login_required_body_raises_login_required_error(): | CODE |
| LOW⚡ | tests/test_api_client.py | 959 | async def test_bridge_not_logged_in_maps_to_login_required_error(): | CODE |
| 612 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/audio_extraction.py | 23 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | core/audio_extraction.py | 25 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | core/audio_extraction.py | 76 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | core/audio_extraction.py | 78 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | core/audio_extraction.py | 222 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | core/audio_extraction.py | 224 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | core/transcript_manager.py | 194 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | core/transcript_manager.py | 200 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/test_api_client.py | 859 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_api_client.py | 861 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 80 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 82 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 131 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 133 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 180 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 182 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 216 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 218 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 266 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_notifier_redactor_property.py | 268 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_notifier_redactor_property.py | 51 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_notifier_redactor_property.py | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_downloader_author_sec_uid.py | 44 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_downloader_author_sec_uid.py | 46 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_downloader_author_sec_uid.py | 74 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_downloader_author_sec_uid.py | 76 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_downloader_author_sec_uid.py | 350 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_downloader_author_sec_uid.py | 358 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_downloader_author_sec_uid.py | 251 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_downloader_author_sec_uid.py | 253 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_database.py | 258 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_database.py | 260 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 198 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 200 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 313 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 315 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 356 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 358 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 411 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 413 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 589 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_transcript_manager_audio.py | 591 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_transcript_manager_audio.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_transcript_manager_audio.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_transcript_manager_audio.py | 106 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_transcript_manager_audio.py | 108 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_transcript_manager_audio.py | 142 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_transcript_manager_audio.py | 144 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_transcript_manager_audio.py | 260 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_transcript_manager_audio.py | 262 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_download_slow_node_guard.py | 38 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_download_slow_node_guard.py | 40 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_download_slow_node_guard.py | 73 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_download_slow_node_guard.py | 75 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_download_slow_node_guard.py | 197 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_download_slow_node_guard.py | 199 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_manifest_author_fields.py | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_manifest_author_fields.py | 55 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_manifest_author_fields.py | 84 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_manifest_author_fields.py | 86 | # --------------------------------------------------------------------------- | COMMENT |
| 78 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/cookie_fetcher.py | 294 | if (typeof v === 'string' && v.trim()) values.push(v.trim()); | CODE |
| HIGH⚡ | core/api_client.py | 74 | style.opacity !== "0" && rect.width > 0 && rect.height > 0 && | CODE |
| HIGH⚡ | core/api_client.py | 75 | rect.bottom > 0 && rect.top < Math.max(window.innerHeight || 0, 900); | CODE |
| HIGH⚡ | core/api_client.py | 75 | rect.bottom > 0 && rect.top < Math.max(window.innerHeight || 0, 900); | CODE |
| HIGH⚡ | core/api_client.py | 94 | const text = normalize(element.innerText || element.textContent); | CODE |
| HIGH⚡ | core/api_client.py | 95 | if (!text || text.length > 1500) return null; | CODE |
| HIGH⚡ | core/api_client.py | 95 | if (!text || text.length > 1500) return null; | CODE |
| HIGH⚡ | core/api_client.py | 101 | if (!values[1] || Math.max(beforeCount, afterCount) < 2) return null; | CODE |
| HIGH⚡ | core/api_client.py | 102 | if (expectedNickname && !text.includes(expectedNickname)) return null; | CODE |
| HIGH⚡ | core/api_client.py | 109 | if (document.fonts && document.fonts.status !== "loaded") return reset(); | CODE |
| HIGH⚡ | core/api_client.py | 1790 | if (!id || seen.has(id)) return; | CODE |
| HIGH⚡ | core/api_client.py | 1792 | result.push(id); | CODE |
| HIGH⚡ | core/api_client.py | 1798 | while ((match = pattern.exec(text)) !== null) { | CODE |
| HIGH | core/api_client.py | 61 | const bodyText = normalize(document.body.innerText || document.body.textContent); | CODE |
| HIGH | core/api_client.py | 1032 | args = json.loads(call[len("self.__pace_f.push(") : -1]) | CODE |
| HIGH | tests/test_api_client.py | 453 | html = f"<script>self.__pace_f.push({json.dumps([1, flight])})</script>" | CODE |
| HIGH | cli/login_flow.py | 51 | "\n pip install playwright && playwright install chromium" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/cookie_fetcher.py | 110 | except Exception: | CODE |
| LOW | tools/cookie_fetcher.py | 197 | except Exception as exc: | CODE |
| LOW | tools/cookie_fetcher.py | 213 | except Exception as exc: | CODE |
| LOW | tools/cookie_fetcher.py | 244 | except Exception as exc: | CODE |
| LOW | tools/cookie_fetcher.py | 250 | except Exception as exc: | CODE |
| LOW | tools/cookie_fetcher.py | 287 | except Exception: | CODE |
| LOW | tools/cookie_fetcher.py | 329 | except Exception: | STRING |
| LOW | core/music_downloader.py | 206 | except Exception as exc: | CODE |
| LOW | core/music_downloader.py | 216 | except Exception as exc: | CODE |
| LOW⚡ | core/audio_extraction.py | 159 | except Exception as exc: # imageio_ffmpeg raises RuntimeError on | CODE |
| LOW | core/audio_extraction.py | 196 | except Exception as exc: | CODE |
| LOW | core/audio_extraction.py | 347 | except Exception as exc: # pragma: no cover - defensive | CODE |
| LOW | core/audio_extraction.py | 353 | except Exception as exc: # pragma: no cover - defensive | CODE |
| LOW | core/discovery.py | 81 | except Exception: # noqa: BLE001 | CODE |
| LOW | core/user_downloader.py | 107 | except Exception as exc: # noqa: BLE001 - 任何失败都归为"解析不出账号" | CODE |
| LOW | core/user_downloader.py | 150 | except Exception as exc: | CODE |
| LOW | core/user_downloader.py | 185 | except Exception as exc: | CODE |
| LOW | core/user_downloader.py | 512 | except Exception: | CODE |
| LOW | core/user_downloader.py | 524 | except Exception as exc: | CODE |
| LOW | core/user_downloader.py | 529 | except Exception as exc: | CODE |
| LOW | core/user_downloader.py | 572 | except Exception as exc: | CODE |
| LOW | core/mix_downloader.py | 133 | except Exception as exc: | CODE |
| LOW | core/ffmpeg.py | 15 | except Exception: | CODE |
| LOW | core/transcript_manager.py | 152 | except Exception: | CODE |
| LOW | core/transcript_manager.py | 270 | except Exception as exc: | CODE |
| LOW | core/transcript_manager.py | 296 | except Exception as exc: # noqa: BLE001 — broad is correct here | CODE |
| LOW | core/live_downloader.py | 109 | except Exception as exc: | CODE |
| LOW | core/live_downloader.py | 264 | except Exception: | CODE |
| LOW | core/live_downloader.py | 269 | except Exception as exc: | CODE |
| LOW | core/live_downloader.py | 319 | except Exception as exc: | CODE |
| LOW | core/comments_collector.py | 76 | except Exception as exc: | CODE |
| LOW | core/retry_executor.py | 181 | except Exception: | CODE |
| LOW | core/retry_executor.py | 189 | except Exception: | CODE |
| LOW | core/retry_executor.py | 213 | except Exception: | CODE |
| LOW | core/retry_executor.py | 230 | except Exception: | CODE |
| LOW | core/retry_executor.py | 242 | except Exception as exc: # pragma: no cover — defensive | CODE |
| LOW | core/retry_executor.py | 259 | except Exception: | CODE |
| LOW | core/retry_executor.py | 268 | except Exception: | CODE |
| LOW | core/api_client.py | 24 | except Exception: # pragma: no cover - optional dependency | CODE |
| LOW | core/api_client.py | 394 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 474 | except Exception: | CODE |
| LOW | core/api_client.py | 479 | except Exception: | CODE |
| LOW | core/api_client.py | 523 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 614 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1058 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1323 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | core/api_client.py | 1382 | except Exception as e: | CODE |
| LOW | core/api_client.py | 1402 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1463 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1470 | except Exception: | CODE |
| LOW | core/api_client.py | 1484 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1528 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1545 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1616 | except Exception: | CODE |
| LOW | core/api_client.py | 1646 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1655 | except Exception: | CODE |
| LOW | core/api_client.py | 1680 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1716 | except Exception as exc: | CODE |
| LOW | core/api_client.py | 1727 | except Exception as exc: | CODE |
| LOW⚡ | core/api_client.py | 1821 | except Exception as exc: | STRING |
| 49 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/music_downloader.py | 1 | CODE | |
| LOW | core/user_mode_registry.py | 1 | CODE | |
| LOW | core/metadata.py | 9 | CODE | |
| LOW | core/audio_extraction.py | 9 | CODE | |
| LOW | core/discovery.py | 6 | CODE | |
| LOW | core/discovery.py | 19 | CODE | |
| LOW | core/user_downloader.py | 1 | CODE | |
| LOW | core/mix_downloader.py | 1 | CODE | |
| LOW | core/ffmpeg.py | 3 | CODE | |
| LOW | core/__init__.py | 1 | CODE | |
| LOW | core/__init__.py | 1 | CODE | |
| LOW | core/__init__.py | 2 | CODE | |
| LOW | core/__init__.py | 3 | CODE | |
| LOW | core/__init__.py | 4 | CODE | |
| LOW | core/__init__.py | 5 | CODE | |
| LOW | core/live_downloader.py | 17 | CODE | |
| LOW | core/comments_collector.py | 10 | CODE | |
| LOW | core/comments_collector.py | 19 | CODE | |
| LOW | core/comments_collector.py | 20 | CODE | |
| LOW | core/retry_executor.py | 29 | CODE | |
| LOW | core/api_client.py | 1 | CODE | |
| LOW | core/live_replay_downloader.py | 3 | CODE | |
| LOW | core/user_modes/post_strategy.py | 1 | CODE | |
| LOW | core/user_modes/base_strategy.py | 1 | CODE | |
| LOW | core/user_modes/base_strategy.py | 10 | CODE | |
| LOW | core/user_modes/__init__.py | 1 | CODE | |
| LOW | core/user_modes/__init__.py | 2 | CODE | |
| LOW | core/user_modes/__init__.py | 3 | CODE | |
| LOW | core/user_modes/__init__.py | 4 | CODE | |
| LOW | core/user_modes/__init__.py | 5 | CODE | |
| LOW | core/user_modes/__init__.py | 6 | CODE | |
| LOW | core/user_modes/__init__.py | 7 | CODE | |
| LOW | core/user_modes/post_time_boundary.py | 1 | CODE | |
| LOW | core/user_modes/collect_strategy.py | 1 | CODE | |
| LOW | core/user_modes/music_strategy.py | 1 | CODE | |
| LOW | core/user_modes/collect_mix_strategy.py | 1 | CODE | |
| LOW | core/user_modes/mix_strategy.py | 1 | CODE | |
| LOW | config/__init__.py | 1 | CODE | |
| LOW | config/__init__.py | 2 | CODE | |
| LOW | auth/__init__.py | 1 | CODE | |
| LOW | auth/__init__.py | 2 | CODE | |
| LOW | auth/ms_token_manager.py | 1 | CODE | |
| LOW | tests/test_notifier_redactor_property.py | 31 | CODE | |
| LOW | tests/test_downloader_author_sec_uid.py | 27 | CODE | |
| LOW | tests/test_downloader_output_dir_report.py | 9 | CODE | |
| LOW | tests/test_transcript_manager_audio.py | 18 | CODE | |
| LOW | tests/test_manifest_author_fields.py | 22 | CODE | |
| LOW | tests/test_config_loader_save.py | 9 | CODE | |
| LOW | tests/test_comments_download_behavior.py | 3 | CODE | |
| LOW | tests/test_api_client_risk_control.py | 12 | CODE | |
| LOW | tests/test_silent_audio.py | 8 | CODE | |
| LOW | tests/test_database_top_authors.py | 30 | CODE | |
| LOW | tests/test_proxy_validator_parity.py | 30 | CODE | |
| LOW | tests/test_downloader_naming_templates.py | 11 | CODE | |
| LOW | tests/test_naming.py | 8 | CODE | |
| LOW | tests/test_download_proxy_passthrough.py | 15 | CODE | |
| LOW | tests/test_audio_extraction.py | 14 | CODE | |
| LOW | server/jobs.py | 6 | CODE | |
| LOW | server/app.py | 10 | CODE | |
| LOW | utils/naming.py | 7 | CODE | |
| 18 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/cookie_fetcher.py | 369 | def update_config(config_path: Path, cookies: Dict[str, str]) -> None: | STRING |
| LOW | core/audio_extraction.py | 369 | __all__ = [ | CODE |
| LOW | core/__init__.py | 7 | __all__ = [ | CODE |
| LOW | core/silent_audio.py | 110 | __all__ = ["SILENT_1S_MP3_BYTES"] | CODE |
| LOW | core/downloader_base.py | 47 | def update_step(self, step: str, detail: str = "") -> None: ... | CODE |
| LOW | core/downloader_base.py | 49 | def set_item_total(self, total: int, detail: str = "") -> None: ... | CODE |
| LOW | core/user_modes/__init__.py | 9 | __all__ = [ | CODE |
| LOW | config/__init__.py | 4 | __all__ = ["ConfigLoader", "DEFAULT_CONFIG"] | CODE |
| LOW | auth/__init__.py | 4 | __all__ = ["CookieManager", "MsTokenManager"] | CODE |
| LOW | tests/test_downloader_output_dir_report.py | 27 | def update_step(self, step: str, detail: str = "") -> None: | CODE |
| LOW | tests/test_downloader_output_dir_report.py | 30 | def set_item_total(self, total: int, detail: str = "") -> None: | CODE |
| LOW | tests/test_video_downloader.py | 23 | def update_step(self, step: str, detail: str = "") -> None: | CODE |
| LOW | tests/test_video_downloader.py | 26 | def set_item_total(self, total: int, detail: str = "") -> None: | CODE |
| LOW | tests/test_user_downloader.py | 46 | def update_step(self, step: str, detail: str = "") -> None: | CODE |
| LOW | tests/test_user_downloader.py | 49 | def set_item_total(self, total: int, detail: str = "") -> None: | CODE |
| LOW | utils/__init__.py | 6 | __all__ = [ | CODE |
| LOW | utils/logger.py | 62 | def set_console_log_level(level: int) -> None: | CODE |
| LOW | storage/__init__.py | 5 | __all__ = ["Database", "FileManager", "MetadataHandler"] | CODE |
| LOW | control/__init__.py | 5 | __all__ = ["RateLimiter", "RetryHandler", "QueueManager"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/downloader_factory.py | 22 | CODE | |
| LOW | core/user_downloader.py | 372 | CODE | |
| LOW | core/url_parser.py | 13 | CODE | |
| LOW | core/retry_executor.py | 87 | CODE | |
| LOW | core/api_client.py | 398 | CODE | |
| LOW | core/api_client.py | 1386 | CODE | |
| LOW | core/api_client.py | 1500 | CODE | |
| LOW | core/api_client.py | 1532 | CODE | |
| LOW | core/downloader_base.py | 304 | CODE | |
| LOW | core/downloader_base.py | 529 | CODE | |
| LOW | core/downloader_base.py | 1057 | CODE | |
| LOW | core/user_modes/base_strategy.py | 84 | CODE | |
| LOW | core/user_modes/base_strategy.py | 171 | CODE | |
| LOW | core/user_modes/collect_strategy.py | 78 | CODE | |
| LOW | config/config_loader.py | 67 | CODE | |
| LOW | config/config_loader.py | 183 | CODE | |
| LOW | utils/notifier.py | 82 | CODE | |
| LOW | cli/main.py | 34 | CODE | |
| LOW | cli/whisper_transcribe.py | 286 | CODE | |
| LOW | storage/database.py | 73 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | core/audio_extraction.py | 153 | # Step 1: resolve binary path | COMMENT |
| LOW | core/audio_extraction.py | 175 | # Step 2: probe `<ffmpeg> -version` | COMMENT |
| LOW⚡ | cli/whisper_transcribe.py | 341 | # Step 1: 提取音频 | COMMENT |
| LOW⚡ | cli/whisper_transcribe.py | 349 | # Step 2: Whisper 识别 | COMMENT |
| LOW⚡ | cli/whisper_transcribe.py | 358 | # Step 3: 繁转简 | COMMENT |
| LOW⚡ | cli/whisper_transcribe.py | 366 | # Step 4: 写文件 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | core/audio_extraction.py | 153 | # Step 1: resolve binary path | COMMENT |
| LOW | core/audio_extraction.py | 175 | # Step 2: probe `<ffmpeg> -version` | COMMENT |
| LOW⚡ | cli/whisper_transcribe.py | 341 | # Step 1: 提取音频 | COMMENT |
| LOW⚡ | cli/whisper_transcribe.py | 349 | # Step 2: Whisper 识别 | COMMENT |
| LOW⚡ | cli/whisper_transcribe.py | 358 | # Step 3: 繁转简 | COMMENT |
| LOW⚡ | cli/whisper_transcribe.py | 366 | # Step 4: 写文件 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config.example.yml | 121 | # 下载完成通知(可选)。providers 支持 bark / telegram / webhook | COMMENT |
| LOW | tests/test_notifier_redactor_property.py | 41 | COMMENT | |
| LOW | tests/test_notifier_redactor_property.py | 101 | # Skip the middle-leak assertion when the middle is unavoidably a | COMMENT |
| LOW | utils/xbogus.py | 1 | # ============================================================================== | COMMENT |
| LOW | utils/abogus.py | 861 | # start = time.time() | COMMENT |
| LOW | cli/__init__.py | 1 | # cli package — entry point is cli.main:main (see pyproject.toml). | COMMENT |
| LOW | storage/file_manager.py | 21 | _SEC_UID_ILLEGAL_RE = re.compile(r'[<>:"/\\|?*\x00-\x1f]') | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/retry_executor.py | 87 | CODE | |
| LOW | storage/database.py | 371 | CODE | |
| LOW | storage/file_manager.py | 159 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | utils/xbogus.py | 4 | # This file is part of the Douyin_TikTok_Download_API project. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | cli/main.py | 140 | # crashing the whole batch. Keeps multi-URL CLI runs robust while | COMMENT |