⚡️IPTV直播源自动更新工具:自动采集、校验、测速并生成可播放结果,支持 M3U/TXT/API 输出、自定义频道、IPv4/IPv6、Docker、GitHub Actions、CLI 与 GUI 多端部署
This report presents the forensic synthetic code analysis of Guovin/iptv-api, a Python project with 24,603 GitHub stars. SynthScan v2.0 examined 15,026 lines of code across 79 source files, recording 259 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 20.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).
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 259 distinct pattern matches across 9 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⚡ | main.py | 102 | except Exception: | CODE |
| LOW | main.py | 184 | except Exception as e: | CODE |
| LOW | main.py | 189 | except Exception as e: | CODE |
| LOW | utils/db.py | 82 | except Exception: | CODE |
| LOW | utils/db.py | 117 | except Exception: | CODE |
| LOW | utils/db.py | 182 | except Exception: | CODE |
| LOW | utils/config.py | 23 | except Exception: | CODE |
| LOW | utils/config.py | 378 | except Exception: | CODE |
| LOW | utils/config.py | 500 | except Exception as e: | CODE |
| LOW | utils/aggregator.py | 67 | except Exception: | CODE |
| LOW | utils/aggregator.py | 83 | except Exception: | CODE |
| LOW | utils/aggregator.py | 148 | except Exception: | CODE |
| LOW | utils/aggregator.py | 156 | except Exception: | CODE |
| LOW | utils/aggregator.py | 223 | except Exception: | CODE |
| LOW | utils/aggregator.py | 275 | except Exception: | CODE |
| LOW | utils/speed.py | 251 | except Exception: | CODE |
| LOW | utils/speed.py | 367 | except Exception: | CODE |
| LOW | utils/speed.py | 390 | except Exception as e: | CODE |
| LOW | utils/speed.py | 420 | except Exception: | CODE |
| LOW | utils/speed.py | 438 | except Exception: | CODE |
| LOW | utils/speed.py | 468 | except Exception: | CODE |
| LOW | utils/speed.py | 485 | except Exception: | CODE |
| LOW | utils/speed.py | 494 | except Exception: | CODE |
| LOW | utils/speed.py | 515 | except Exception: | CODE |
| LOW | utils/speed.py | 595 | except Exception: | CODE |
| LOW | utils/speed.py | 610 | except Exception: | CODE |
| MEDIUM | utils/tools.py | 126 | print(f"Error: {e}") | CODE |
| LOW | utils/tools.py | 50 | except Exception: | CODE |
| LOW | utils/tools.py | 59 | except Exception: | CODE |
| LOW | utils/tools.py | 83 | except Exception: | CODE |
| LOW | utils/tools.py | 125 | except Exception as e: | CODE |
| LOW | utils/tools.py | 311 | except Exception: | CODE |
| LOW | utils/tools.py | 358 | except Exception: | CODE |
| LOW | utils/tools.py | 627 | except Exception: | CODE |
| LOW | utils/tools.py | 854 | except Exception: | CODE |
| LOW | utils/tools.py | 966 | except Exception: | CODE |
| LOW | utils/tools.py | 997 | except Exception as e: | CODE |
| LOW | utils/tools.py | 1108 | except Exception: | CODE |
| LOW | utils/tools.py | 1163 | except Exception: | CODE |
| LOW | utils/tools.py | 1225 | except Exception: | CODE |
| LOW | utils/tools.py | 1245 | except Exception: | CODE |
| LOW | utils/tools.py | 1249 | except Exception as e: | CODE |
| LOW | utils/tools.py | 1450 | except Exception as e: | CODE |
| LOW | utils/tools.py | 1460 | except Exception: | CODE |
| LOW⚡ | utils/channel.py | 1115 | except Exception: | CODE |
| LOW⚡ | utils/channel.py | 1117 | except Exception: | CODE |
| LOW⚡ | utils/channel.py | 1121 | except Exception as e: | CODE |
| LOW⚡ | utils/channel.py | 1127 | except Exception as e: | CODE |
| LOW | utils/channel.py | 355 | except Exception: | CODE |
| LOW | utils/channel.py | 380 | except Exception as e: | CODE |
| LOW | utils/channel.py | 590 | except Exception as e: | CODE |
| LOW | utils/channel.py | 743 | except Exception: | CODE |
| LOW | utils/channel.py | 749 | except Exception: | CODE |
| LOW | utils/channel.py | 816 | except Exception: | CODE |
| LOW | utils/channel.py | 828 | except Exception: | CODE |
| LOW | utils/channel.py | 834 | except Exception: | CODE |
| LOW | utils/channel.py | 875 | except Exception: | CODE |
| LOW | utils/channel.py | 1204 | except Exception as e: | CODE |
| LOW | utils/channel.py | 1208 | except Exception as e: | CODE |
| LOW | utils/retry.py | 16 | except Exception as e: | CODE |
| 82 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | main.py | 93 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | main.py | 95 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | main.py | 217 | # ---------------------------- | COMMENT |
| MEDIUM⚡ | main.py | 219 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 72 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 74 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 113 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 115 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 129 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 131 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 242 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 244 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 302 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 304 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 330 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 332 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 398 | # ---------------------------- | COMMENT |
| MEDIUM | main.py | 400 | # ---------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main.py | 435 | CODE | |
| LOW | utils/db.py | 51 | CODE | |
| LOW | utils/db.py | 124 | CODE | |
| LOW | utils/alias.py | 9 | CODE | |
| LOW | utils/alias.py | 61 | CODE | |
| LOW | utils/config.py | 445 | CODE | |
| LOW | utils/config.py | 477 | CODE | |
| LOW | utils/aggregator.py | 99 | CODE | |
| LOW | utils/aggregator.py | 226 | CODE | |
| LOW | utils/speed.py | 98 | CODE | |
| LOW | utils/speed.py | 255 | CODE | |
| LOW | utils/speed.py | 395 | CODE | |
| LOW | utils/speed.py | 564 | CODE | |
| LOW | utils/speed.py | 624 | CODE | |
| LOW | utils/speed.py | 657 | CODE | |
| LOW | utils/whitelist.py | 23 | CODE | |
| LOW | utils/whitelist.py | 136 | CODE | |
| LOW | utils/tools.py | 35 | CODE | |
| LOW | utils/tools.py | 335 | CODE | |
| LOW | utils/tools.py | 455 | CODE | |
| LOW | utils/tools.py | 677 | CODE | |
| LOW | utils/tools.py | 696 | CODE | |
| LOW | utils/tools.py | 816 | CODE | |
| LOW | utils/tools.py | 837 | CODE | |
| LOW | utils/tools.py | 1033 | CODE | |
| LOW | utils/tools.py | 1229 | CODE | |
| LOW | utils/tools.py | 1253 | CODE | |
| LOW | utils/tools.py | 1341 | CODE | |
| LOW | utils/tools.py | 361 | CODE | |
| LOW | utils/channel.py | 182 | CODE | |
| LOW | utils/channel.py | 308 | CODE | |
| LOW | utils/channel.py | 441 | CODE | |
| LOW | utils/channel.py | 642 | CODE | |
| LOW | utils/channel.py | 894 | CODE | |
| LOW | utils/channel.py | 1000 | CODE | |
| LOW | utils/channel.py | 1132 | CODE | |
| LOW | utils/retry.py | 8 | CODE | |
| LOW | utils/frozen.py | 71 | CODE | |
| LOW | utils/ffmpeg/ffmpeg.py | 35 | CODE | |
| LOW | utils/ffmpeg/probe.py | 61 | CODE | |
| LOW | utils/ffmpeg/probe.py | 187 | CODE | |
| LOW | updates/subscribe/request.py | 49 | CODE | |
| LOW | updates/subscribe/request.py | 106 | CODE | |
| LOW | updates/epg/request.py | 110 | CODE | |
| LOW | updates/epg/request.py | 159 | CODE | |
| LOW | service/rtmp.py | 248 | CODE | |
| LOW | service/rtmp.py | 503 | CODE | |
| LOW | service/app.py | 228 | CODE | |
| LOW | service/app.py | 291 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | main.py | 211 | def _write_epg_files_if_needed(self): | CODE |
| LOW | utils/db.py | 51 | def ensure_result_data_schema(db_path): | CODE |
| LOW | utils/aggregator.py | 86 | async def _atomic_write_sorted_view( | CODE |
| LOW | utils/speed.py | 71 | def create_speed_test_session(concurrency: int): | CODE |
| LOW | utils/whitelist.py | 118 | def get_whitelist_total_count(data_map: WhitelistMaps) -> int: | CODE |
| LOW | utils/tools.py | 287 | def get_total_urls_from_sorted_data(data): | CODE |
| LOW | utils/tools.py | 552 | def remove_duplicates_from_list(data_list, seen, filter_host=False, ipv6_support=True): | CODE |
| LOW | utils/tools.py | 973 | def get_request_url_candidates(url: str) -> List[str]: | CODE |
| LOW | utils/tools.py | 1206 | def sanitize_filename_from_url(url: str, max_len: int = 200) -> str: | CODE |
| LOW | utils/channel.py | 86 | def _build_total_urls_signature(info_list: list[ChannelData]) -> str: | CODE |
| LOW | utils/channel.py | 169 | def check_channel_need_frozen(info) -> bool: | CODE |
| LOW | utils/channel.py | 182 | def get_channel_data_from_file(channels, file, whitelist_maps, blacklist, | CODE |
| LOW | utils/channel.py | 414 | def get_channel_results_by_name(name, data): | CODE |
| LOW | utils/channel.py | 595 | def append_old_data_to_info_data(info_data, cate, name, data, whitelist_maps=None, blacklist=None, ipv_type_data=None): | CODE |
| LOW | utils/channel.py | 953 | def generate_channel_statistic(logger, cate, name, values): | CODE |
| LOW | utils/ffmpeg/ffmpeg.py | 13 | def check_ffmpeg_installed_status(): | CODE |
| LOW | updates/subscribe/request.py | 49 | async def get_channels_by_subscribe_urls( | CODE |
| LOW | updates/subscribe/request.py | 106 | def process_subscribe_channels(subscribe_info: str | dict) -> defaultdict: | CODE |
| LOW | tkinter_ui/speed.py | 176 | def update_speed_test_timeout(self, event): | CODE |
| LOW | tkinter_ui/speed.py | 189 | def update_open_filter_resolution(self): | CODE |
| LOW | tkinter_ui/speed.py | 202 | def update_speed_test_filter_host(self, event): | CODE |
| LOW | tkinter_ui/tkinter_ui.py | 77 | def view_result_link_callback(self, event): | CODE |
| LOW | tkinter_ui/default.py | 555 | def update_open_empty_category(self): | CODE |
| LOW | tkinter_ui/default.py | 568 | def update_update_time_position(self, event): | CODE |
| LOW | tkinter_ui/prefer.py | 86 | def get_origin_type_prefer_index(self, origin_type_prefer): | CODE |
| LOW⚡ | service/rtmp.py | 157 | def ensure_hls_idle_monitor_started(): | CODE |
| LOW⚡ | service/rtmp.py | 193 | def invalidate_video_encoder_args_cache(): | CODE |
| LOW⚡ | service/rtmp.py | 204 | def _get_video_encoder_candidates(): | CODE |
| LOW | service/rtmp.py | 78 | def _release_stream_reservation(channel_id): | CODE |
| LOW | service/rtmp.py | 117 | def _save_probe_metadata_to_db(channel_id: str, url: str, headers: dict | None, meta: dict | None): | CODE |
| LOW | service/rtmp.py | 248 | def _start_reserved_hls_to_rtmp(host, channel_id, client_user_agent: str | None = None): | CODE |
| LOW | service/rtmp.py | 280 | def _client_needs_transcode_for_codec(user_agent: str | None, video_codec: str | None) -> bool: | CODE |
| LOW | service/rtmp.py | 337 | def _audio_compatible_with_flv(audio_codec: str | None) -> bool: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/ffmpeg/__init__.py | 1 | CODE | |
| LOW | utils/ffmpeg/__init__.py | 1 | CODE | |
| LOW | utils/ffmpeg/__init__.py | 2 | CODE | |
| LOW | utils/ffmpeg/__init__.py | 2 | CODE | |
| LOW | utils/ffmpeg/__init__.py | 2 | CODE | |
| LOW | utils/ip_checker/__init__.py | 1 | CODE | |
| LOW | updates/subscribe/__init__.py | 1 | CODE | |
| LOW | updates/epg/__init__.py | 1 | CODE | |
| LOW | updates/epg/__init__.py | 2 | CODE | |
| LOW | updates/epg/__init__.py | 2 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/whitelist.txt | 1 | # 这是接口的白名单,白名单内的接口将不会参与测速,始终保留至结果最前; | COMMENT |
| LOW | config/local.txt | 1 | # 这是本地源列表,一行一个源,格式为:频道名称,接口地址 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/speed.py | 255 | CODE | |
| LOW | utils/speed.py | 564 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/frozen.py | 98 | __all__ = ["mark_url_bad", "mark_url_good", "is_url_frozen", "get_current_frozen_set", "load", "save"] | CODE |
| LOW | utils/ffmpeg/__init__.py | 4 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/speed.py | 62 | "placeholder", | CODE |