Skip to content

Length comparison fix#131

Merged
mergify[bot] merged 19 commits into
masterfrom
length_comparison_fix
Apr 10, 2026
Merged

Length comparison fix#131
mergify[bot] merged 19 commits into
masterfrom
length_comparison_fix

Conversation

@Kicer86
Copy link
Copy Markdown
Owner

@Kicer86 Kicer86 commented Apr 9, 2026

No description provided.

Kicer86 added 19 commits April 9, 2026 19:40
Reject negative values via argparse type check to prevent
_is_length_mismatch from always triggering audio patching.
The _render_skipped method was removed earlier, so nothing reads
files_details from skipped group dicts anymore.
Narrow the type from int | None to int so mypy can verify the
call. The guard is guaranteed by _is_length_mismatch returning
False when either argument is None.
Filter planned items directly from plan instead of going through
visible_items, which became redundant after _render_skipped removal.
Replace independent if-chains with structural pattern matching
in _stream_short_details to clarify mutual exclusivity.
Define StreamType = Literal['video', 'audio', 'subtitle'] in
melt_common and use it in _stream_short_details and
_format_track_line signatures. Catches typos at type-check time.
Replace independent if-chains with structural pattern matching
in _stream_short_details to clarify mutual exclusivity.
Move the shared stream summary function to stream_short_details
in melt_common.py. Both MeltAnalyzer and MeltPlan now delegate
to the single implementation, eliminating the duplicated logic.
Replace .setdefault(path, set()).add(tid) pattern with
defaultdict for cleaner collection of selected stream IDs.
@mergify mergify Bot merged commit 5736510 into master Apr 10, 2026
7 checks passed
@mergify mergify Bot deleted the length_comparison_fix branch April 10, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant