--save-subtitle-file indexes tracks by MKV track number

Open Beginner friendly
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
swift
Domain
desktop

Research direction

Start with MKVSubtitleExtractor.saveSubtitleTrackData(trackNumber:outputDirectory:) and inspect how the extracted tracks are stored and identified. Change the lookup so it selects the track matching trackNumber (or receives the MKVTrack directly); done when tracks numbered 3 and 4 save the correct subtitle data without an out-of-range trap.

Written by the indexing model from the issue text.

Description

bug

MKVSubtitleExtractor.saveSubtitleTrackData(trackNumber:outputDirectory:) does tracks[trackNumber], using the MKV track number as an index into the array of extracted tracks. With e.g. tracks 3 and 4 extracted this traps out of range or saves the wrong track's data.

Fix: look the track up by trackNumber (or pass the MKVTrack itself).

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.