Skip to content

Protect multi-stream VOB outputs from accidental overwrite - #17

Draft
Blackspirits wants to merge 1 commit into
upl/review-base-18eefrom
fix/vob-multistream-overwrite-18ee
Draft

Protect multi-stream VOB outputs from accidental overwrite#17
Blackspirits wants to merge 1 commit into
upl/review-base-18eefrom
fix/vob-multistream-overwrite-18ee

Conversation

@Blackspirits

Copy link
Copy Markdown
Owner

Summary

The current preflight checks only the unnumbered base output path. Multi-stream extraction writes numbered paths such as movie.0.sub/.idx and movie.1.sub/.idx, so existing numbered outputs can be overwritten even without --overwrite.

This change moves overwrite protection into VobSubExtractor after actual output names are known.

Validation

  • focused VobSubExtractorTest passed
  • UTF-8 BOM explicitly preserved
  • full solution test suite passed
  • validation run: #34523721692

AI assistance: ChatGPT was used to audit the VOB output flow, prepare the fix, and add regression coverage.

@Blackspirits
Blackspirits requested a lite review from Copilot September 11, 2026 00:27

Copilot AI commented Sep 11, 2026

Copy link
Copy Markdown

@Blackspirits Thanks for sending me some feedback. Unfortunately, I hit an error while trying to use the custom Copilot setup steps configured for this repository. The error I am seeing is:

no supported setup-steps job found in your workflow file. Please ensure you have a job named copilot-code-review or copilot-setup-steps. For more details, see https://gh.io/copilot/actions-setup-steps

Once you or someone with the necessary access fixes the problem, please let me know in a comment and I'll try again. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues remain.

Pull request overview

Protects multi-stream VOB outputs from accidental overwrite by validating generated numbered paths in VobSubExtractor.

Changes:

  • Adds overwrite checks for numbered .sub and .idx outputs.
  • Propagates the overwrite setting through SubtitleConverter.
  • Adds regression coverage for multi-stream output handling.
File summaries
File Summary
tests/seconv/Core/VobSubExtractorTest.cs Tests numbered output protection and unused base paths.
src/seconv/Core/VobSubExtractor.cs Builds and validates generated stream output paths.
src/seconv/Core/SubtitleConverter.cs Passes overwrite handling to the extractor.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants