Open-source platform that transforms your personal media library into live, custom TV channels.
This report summarizes scanner evidence for ErsatzTV/legacy, a C# project with 3,029 GitHub stars. SynthScan examined 3,006,328 lines of code across 3727 source files, recording 162 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 141 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 9 finding(s).
Which changes need focused human review? 162 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 162 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | ErsatzTV.Scanner/Worker.cs | 32 | //HibernatingRhinos.Profiler.Appender.EntityFramework.EntityFrameworkProfiler.Initialize(); | COMMENT |
| CRITICAL | ErsatzTV/Program.cs | 135 | //HibernatingRhinos.Profiler.Appender.EntityFramework.EntityFrameworkProfiler.Initialize(); | COMMENT |
| CRITICAL | ErsatzTV/wwwroot/lib/jqueryui/jquery-ui.min.js | 6 | (t=>{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(V){V.ui=V.ui||{};V.ui.version="1.14 | CODE |
| CRITICAL | ErsatzTV/wwwroot/lib/jquery/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| CRITICAL | ErsatzTV/Properties/Annotations.cs | 902 | /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | ErsatzTV/Properties/Annotations.cs | 923 | /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | ErsatzTV/Properties/Annotations.cs | 944 | /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String, String)</c>. | COMMENT |
| CRITICAL | ErsatzTV/Properties/Annotations.cs | 984 | /// <c>System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | ErsatzTV/Properties/Annotations.cs | 1003 | /// <c>System.Web.Mvc.Html.DisplayExtensions.DisplayForModel(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | ErsatzTV/Properties/Annotations.cs | 1013 | /// <c>System.Web.Mvc.Html.EditorExtensions.EditorForModel(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | ErsatzTV.Infrastructure/Search/LuceneSearchIndex.cs | 1615 | $"{Title(em)}_{em.Episode.Season.Show.ShowMetadata.Head().Title}_{em.Year}_{em.Episode.Season.SeasonNumb | CODE |
| CRITICAL | …lication/MediaCollections/Commands/TraktCommandBase.cs | 402 | .Filter(sm => sm.Episode.Season.Show.ShowMetadata.Any(s => s.Title == item.Title && s.Year == item.Year)) | CODE |
| CRITICAL | ErsatzTV.Application/MediaCards/Mapper.cs | 71 | episodeMetadata.Episode.Season.Show.ShowMetadata.HeadOrNone().Match( | CODE |
| CRITICAL | ErsatzTV.Application/MediaCards/Mapper.cs | 248 | episodeMetadata.Episode.Season.Show.ShowMetadata.HeadOrNone(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hdhr.md | 41 | #define HDHOMERUN_CONTROL_TCP_PORT 65001 | COMMENT |
| LOW | hdhr.md | 61 | #define HDHOMERUN_TAG_STORAGE_URL 0x28 | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 1 | // <auto-generated /> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 21 | using System.Globalization; | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 41 | [JsonPropertyName("version")] | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 81 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 101 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 141 | public GraphicsLocation Location { get; set; } | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 201 | /// (stale playout metadata) is stretched to the output size. | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 221 | /// chroma-subsampled output. | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 241 | /// The source providing the graphics media (typically an image, but any `PlayoutItemSource` | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 261 | /// `start` advances each tick, the resolver is re-hit while the transcode position remains | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 301 | /// read only once (at playback). See `ProbeHint`. | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 321 | /// Selects a dynamic source, resolved over HTTP when the item plays. | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 341 | COMMENT | |
| LOW | ErsatzTV.Core/Next/Playout.cs | 361 | COMMENT | |
| LOW | ErsatzTV.Core/Next/Playout.cs | 381 | /// | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 421 | /// the waits between them. Absent or 0 disables retry. Transport errors, timeouts and 5xx | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 441 | /// </summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 501 | /// Zero-based index of this stream within the source. | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 521 | /// Zero-based index of this stream within the source. | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 541 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 561 | /// "smpte2084" and "arib-std-b67" mark the stream as HDR. Omit for SDR. | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 581 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 621 | COMMENT | |
| LOW | ErsatzTV.Core/Next/Playout.cs | 641 | /// </summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 661 | { | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 681 | public long? FadeMs { get; set; } | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 701 | public long? PhaseOffsetMs { get; set; } | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 721 | /// HTTP. | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 741 | /// extends beyond this (it will be clamped if it does). | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 761 | [JsonPropertyName("path")] | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 781 | /// | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 801 | /// Custom HTTP headers, e.g. ["Authorization: Bearer {{TOKEN}}"]. Supports {{TEMPLATE}} | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 821 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 841 | COMMENT | |
| LOW | ErsatzTV.Core/Next/Playout.cs | 881 | [JsonPropertyName("retry_backoff_ms")] | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 921 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 941 | /// </summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 961 | /// | COMMENT |
| LOW | ErsatzTV.Core/Next/Playout.cs | 1401 | #pragma warning restore CS8602 | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 1 | // <auto-generated /> | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 21 | using System.Globalization; | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 61 | public string? Version { get; set; } | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 161 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 241 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 301 | /// Bitrate in kbit/s. Required for `mpeg2video`. Unset leaves it to the encoder. | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 341 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 381 | /// <summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 401 | [JsonPropertyName("width")] | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 421 | /// </summary> | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 441 | /// used for CUDA and Vulkan tonemapping. | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 461 | COMMENT | |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 621 | } | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 641 | /// | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 661 | public enum StreamMode { Copy, Transcode }; | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 681 | /// VA-API. Linux only. | COMMENT |
| LOW | ErsatzTV.Core/Next/Config/ChannelConfig.cs | 701 | COMMENT | |
| LOW | …satzTV.Core/FFmpeg/FFmpegPlaybackSettingsCalculator.cs | 1 | // zlib License | COMMENT |
| LOW | ErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs | 1 | // zlib License | COMMENT |
| 75 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ErsatzTV/Locals/Shared/Common.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | ErsatzTV/Locals/Shared/MainLayout.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | ErsatzTV/Locals/Pages/Channels.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …frastructure/Data/Repositories/OtherVideoRepository.cs | 0 | insert into artwork (artworkkind, dateadded, dateupdated, path) values (@artworkkind, @dateadded, @dateupdated, @path); | STRING |
| HIGH | …frastructure/Data/Repositories/TelevisionRepository.cs | 0 | insert into artwork (artworkkind, dateadded, dateupdated, path) values (@artworkkind, @dateadded, @dateupdated, @path); | STRING |
| HIGH | …TV.Infrastructure/Data/Repositories/MovieRepository.cs | 0 | insert into artwork (artworkkind, dateadded, dateupdated, path) values (@artworkkind, @dateadded, @dateupdated, @path); | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/scripted-schedules/entrypoint.py | 25 | print(f"Error: cannot find a script file named '{known_args.script_name}.py' in the 'scripts' directory.") | CODE |
| MEDIUM | scripts/scripted-schedules/entrypoint.py | 33 | print("Error: ETV_API_KEY is not set; this script must be launched by ErsatzTV.") | CODE |
| MEDIUM | scripts/scripted-schedules/entrypoint.py | 56 | print(f"Error: the '{known_args.script_name}' script is missing a required function. {e}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ErsatzTV/Resources/Scripts/_episode.js | 3 | function selectEpisodeAudioStreamIndex( | CODE |
| LOW | ErsatzTV/Resources/Scripts/_movie.js | 3 | function selectMovieAudioStreamIndex( | CODE |
| LOW | …ication/Channels/Commands/RefreshChannelDataHandler.cs | 27 | public class RefreshChannelDataHandler : IRequestHandler<RefreshChannelData> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ErsatzTV/wwwroot/lib/jqueryui/jquery-ui.min.js | 6 | (t=>{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(V){V.ui=V.ui||{};V.ui.version="1.14 | CODE |