Repository Analysis

alexta69/metube

Self-hosted video downloader for YouTube and other sites (web UI for yt-dlp)

17.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of alexta69/metube, a Python project with 14,541 GitHub stars. SynthScan v2.0 examined 26,180 lines of code across 87 source files, recording 484 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 17.6 places this repository in the Moderate 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).

17.6
Adjusted Score
17.6
Raw Score
100%
Time Factor
2026-08-28
Last Push
14.5K
Stars
Python
Language
26.2K
Lines of Code
87
Files
484
Pattern Hits
2026-08-29
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 1MEDIUM 2LOW 481

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 484 distinct pattern matches across 8 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.

Hyper-Verbose Identifiers419 hits · 398 pts
SeverityFileLineSnippetContext
LOWapp/state_store.py192 def _warn_direct_write_fallback(self, exc: OSError) -> None:CODE
LOWapp/ytdl.py356def _sanitize_entry_for_pickle(obj, _depth=0):CODE
LOWapp/ytdl.py642def _short_title_for_failed_url(url: str) -> str:CODE
LOWapp/ytdl.py685def _download_info_from_record(record: dict[str, Any]) -> DownloadInfo:CODE
LOWapp/ytdl.py1388 def _seconds_until_next_probe(self) -> Optional[float]:CODE
LOWapp/ytdl.py1426 async def _probe_scheduled_download(self, download: Download) -> None:CODE
LOWapp/ytdl.py1495 async def _schedule_upcoming_download(self, download: Download) -> None:CODE
LOWapp/ytdl.py1658 def __write_feed_metadata_sync(self, entry, etype, download_type, folder,CODE
LOWapp/subscriptions.py154def _is_subscriber_only_entry(entry: dict) -> bool:CODE
LOWapp/subscriptions.py262def _normalize_subscription_record(rec: dict[str, Any]) -> dict[str, Any]:CODE
LOWapp/subscriptions.py280def _subscription_from_record(record: Any) -> Optional[SubscriptionInfo]:CODE
LOWapp/subscriptions.py293def _normalize_title_regex_value(value: Any) -> str:CODE
LOWapp/subscriptions.py314def validate_subscription_name(value: Any) -> str:CODE
LOWapp/subscriptions.py327def validate_subscription_folder(value: Any) -> str:CODE
LOWapp/subscriptions.py472 async def _queue_subscription_entries(CODE
LOWapp/dl_formats.py34def _normalize_subtitle_language(language: str) -> str:CODE
LOWapp/main.py37def seconds_until_next_daily_time(time_hhmm: str, now: datetime | None = None) -> float:CODE
LOWapp/main.py378def _parse_ytdl_options_overrides(value, *, enabled: bool) -> dict:CODE
LOWapp/main.py442def _parse_clip_timestamp_value(value) -> float:CODE
LOWapp/main.py472def _clip_field_provided_in_post(raw) -> bool:CODE
LOWapp/main.py480def _extract_t_query_from_url(url: str) -> tuple[str, float | None]:CODE
LOWapp/main.py514def _parse_ytdl_options_presets(post: dict) -> list[str]:CODE
LOWapp/main.py615async def _shutdown_download_manager(app):CODE
LOWapp/main.py650async def _subscription_loop_startup(app):CODE
LOWapp/main.py671async def _start_nightly_update_schedule(app):CODE
LOWapp/main.py1096def warn_if_cookiefile_shadowed():CODE
LOWapp/url_guard.py132def _address_allowed_at_connect(addr: str, is_allowed_endpoint: bool = False) -> bool:CODE
LOWapp/tests/test_nightly_update.py12 def test_seconds_until_later_today(self):CODE
LOWapp/tests/test_nightly_update.py17 def test_seconds_until_wraps_to_next_day(self):CODE
LOWapp/tests/test_nightly_update.py22 def test_seconds_until_same_minute_is_next_day(self):CODE
LOWapp/tests/test_music_metadata.py14def test_album_uses_existing_order_and_total_when_track_number_is_missing():CODE
LOWapp/tests/test_music_metadata.py28def test_official_track_number_wins_over_album_order():CODE
LOWapp/tests/test_music_metadata.py38def test_inline_official_track_total_is_preserved():CODE
LOWapp/tests/test_music_metadata.py47def test_source_track_number_and_total_are_retained_from_flat_extraction():CODE
LOWapp/tests/test_music_metadata.py56def test_album_title_falls_back_to_source_playlist_title():CODE
LOWapp/tests/test_music_metadata.py66def test_playlist_without_extractor_album_signals_is_not_changed():CODE
LOWapp/tests/test_music_metadata.py80def test_regular_video_artwork_is_not_changed():CODE
LOWapp/tests/test_music_metadata.py91def test_music_audio_prefers_largest_existing_square_thumbnail():CODE
LOWapp/tests/test_music_metadata.py108def test_landscape_only_music_artwork_keeps_existing_order():CODE
LOWapp/tests/test_url_guard.py27 def test_bare_video_id_allowed(self):CODE
LOWapp/tests/test_url_guard.py30 def test_ytsearch_prefix_allowed(self):CODE
LOWapp/tests/test_url_guard.py33 def test_empty_string_allowed(self):CODE
LOWapp/tests/test_url_guard.py52 def test_localhost_blocked_without_lookup(self):CODE
LOWapp/tests/test_url_guard.py57 def test_localhost_subdomain_blocked(self):CODE
LOWapp/tests/test_url_guard.py60 def test_gcp_metadata_name_blocked(self):CODE
LOWapp/tests/test_url_guard.py69 def test_public_https_allowed(self):CODE
LOWapp/tests/test_url_guard.py75 def test_link_local_metadata_blocked(self):CODE
LOWapp/tests/test_url_guard.py84 def test_decimal_ip_form_blocked(self):CODE
LOWapp/tests/test_url_guard.py117 def test_loopback_blocked_by_default(self):CODE
LOWapp/tests/test_url_guard.py123 def test_loopback_allowed_only_when_opted_in(self):CODE
LOWapp/tests/test_url_guard.py127 def test_proxy_opt_in_covers_any_internal_range(self):CODE
LOWapp/tests/test_url_guard.py135 def test_opt_in_still_rejects_non_addresses(self):CODE
LOWapp/tests/test_url_guard.py138 def test_link_local_metadata_blocked(self):CODE
LOWapp/tests/test_url_guard.py170 def test_sixtofour_and_teredo_stay_blocked(self):CODE
LOWapp/tests/test_url_guard.py177 def test_plain_addresses_unaffected(self):CODE
LOWapp/tests/test_url_guard.py182 def test_tunnelled_form_blocked_at_ingress(self):CODE
LOWapp/tests/test_url_guard.py221 def test_internal_only_raises(self):CODE
LOWapp/tests/test_url_guard.py226 def test_filters_internal_keeps_global(self):CODE
LOWapp/tests/test_url_guard.py232 def test_loopback_blocked_without_matching_proxy(self):CODE
LOWapp/tests/test_url_guard.py238 def test_loopback_allowed_at_configured_url_endpoint(self):CODE
359 more matches not shown…
Excessive Try-Catch Wrapping23 hits · 26 pts
SeverityFileLineSnippetContext
LOWapp/state_store.py75 except Exception as exc:CODE
LOWapp/state_store.py113 except Exception as exc:CODE
LOWapp/state_store.py144 except Exception:CODE
MEDIUMapp/ytdl.py1019def running(self):CODE
MEDIUMapp/ytdl.py1719def __write_feed_metadata(self, entry, etype, download_type, folder,CODE
LOWapp/ytdl.py380 except Exception:CODE
LOWapp/ytdl.py385 except Exception:CODE
LOWapp/ytdl.py987 except Exception as e:CODE
LOWapp/ytdl.py1258 except Exception:CODE
LOWapp/ytdl.py1272 except Exception:CODE
LOWapp/ytdl.py1418 except Exception as exc:CODE
LOWapp/ytdl.py1443 except Exception as exc:CODE
LOWapp/ytdl.py1729 except Exception as exc:CODE
LOWapp/subscriptions.py552 except Exception as e:CODE
LOWapp/subscriptions.py719 except Exception:CODE
LOWapp/subscriptions.py744 except Exception:CODE
LOWapp/subscriptions.py828 except Exception:CODE
LOWapp/subscriptions.py893 except Exception:CODE
LOWapp/subscriptions.py912 except Exception:CODE
LOWapp/subscriptions.py928 except Exception:CODE
LOWapp/subscriptions.py1058 except Exception:CODE
LOWapp/main.py327 except Exception:CODE
LOWapp/main.py490 except Exception:CODE
Unused Imports18 hits · 14 pts
SeverityFileLineSnippetContext
LOWapp/state_store.py1CODE
LOWapp/ytdl.py2CODE
LOWapp/subscriptions.py3CODE
LOWapp/music_metadata.py8CODE
LOWapp/tests/conftest.py3CODE
LOWapp/tests/test_nightly_update.py3CODE
LOWapp/tests/test_music_metadata.py3CODE
LOWapp/tests/test_url_guard.py3CODE
LOWapp/tests/test_state_store.py1CODE
LOWapp/tests/test_subscriptions.py1CODE
LOWapp/tests/test_dl_formats.py3CODE
LOWapp/tests/test_config.py3CODE
LOWapp/tests/test_main_helpers.py3CODE
LOWapp/tests/test_api.py3CODE
LOWapp/tests/test_download_queue.py3CODE
LOWapp/tests/test_ytdl_utils.py3CODE
LOWapp/tests/test_bg_tasks.py3CODE
LOWapp/tests/test_persistent_queue.py3CODE
Deep Nesting16 hits · 12 pts
SeverityFileLineSnippetContext
LOWapp/ytdl.py389CODE
LOWapp/ytdl.py532CODE
LOWapp/ytdl.py774CODE
LOWapp/ytdl.py1028CODE
LOWapp/ytdl.py1394CODE
LOWapp/ytdl.py1733CODE
LOWapp/ytdl.py2188CODE
LOWapp/ytdl.py791CODE
LOWapp/subscriptions.py97CODE
LOWapp/subscriptions.py262CODE
LOWapp/subscriptions.py871CODE
LOWapp/dl_formats.py96CODE
LOWapp/main.py531CODE
LOWapp/main.py741CODE
LOWapp/tests/test_state_store.py77CODE
LOWapp/tests/test_subscriptions.py197CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHapp/dl_formats.py40 Returns yt-dlp format selector. Args: download_type (str): selected content type (video, audio, captionsSTRING
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWapp/main.py679 # Check if this path matches our YTDL_OPTIONS_FILECOMMENT
LOW.github/workflows/update-yt-dlp.yml28 # Check if yt-dlp has updates availableCOMMENT
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWapp/ytdl.py81 return '\n'.join(lines)COMMENT
LOWapp/main.py1341async def on_prepare(request, response):COMMENT
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWapp/ytdl.py462CODE
LOWapp/ytdl.py1967CODE
LOWapp/ytdl.py2099CODE