One bad subtitle aborts the whole run

Open
#81 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
swift
Domain
backend

Research direction

Start by tracing subtitle decoding through the PGS and VobSub initializers, including the RLEData error path, and then find where track outputs are written after processing completes. Check how cues retain their timing when decoding fails. Done means a bad subtitle produces a stderr warning and an empty cue with its original timing, while other subtitles and completed track outputs are preserved.

Written by the indexing model from the issue text.

Description

bug

Per-subtitle decode errors (invalidRLE from RLEData, invalidODSDimensions, VobSub decode errors) propagate out of the PGS/VobSub initializers and end the program. Every track is lost, because SRT files are only written after all tracks finish.

Fix: catch errors per subtitle, warn on stderr, and keep an empty placeholder cue with the original timing; write each track's output as soon as that track is done.

Dominant language
Swift
Stars
42
Forks
9
Avg merge
9h 30m
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ecdye/macSubtitleOCR

All issues in ecdye/macSubtitleOCR

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.