A standalone fork must not pull its updates from subler.org's appcast:
the feed serves upstream builds signed with the upstream Ed key, so the
whole integration goes — the Check for Updates menu item and the
SPUStandardUpdaterController, the SUFeedURL/SUAllowsAutomaticUpdates/
SUPublicEDKey Info.plist entries, their six localized titles, and the
Sparkle SPM package reference. The app now has no package dependencies.
Also captures the Xcode 27.2 settings migration (deployment target now
$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET), so plain xcodebuild works with
no CLI override — verified with a clean build), the 1.9.5mkv marketing
version, and the matching MP42Foundation submodule bump. README and
CLAUDE.md lose the now-stale Sparkle and 10.13 notes.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Bumps MP42Foundation to its .gitmodules rewrite and rewrites the build
docs: clone/update instructions for the nested submodules, the SSH key
prerequisite, and a note that Sparkle still comes from upstream via SPM.
Co-Authored-By: Claude Code <noreply@anthropic.com>
The Gitea SSH endpoint serves git under the "gitea" user, not "git"; the
retargeted submodule URL and README clone instructions must use it.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Rewrite the MP42Foundation submodule URL to the Scott-Files organization on
git.technomancer.com so a clone builds standalone, and rewrite the README to
describe the fork: native Matroska editing, VobSub frame-size muxing, and
file-name-embedded metadata ID lookup, on top of the upstream SublerApp tree.
Co-Authored-By: Claude Code <noreply@anthropic.com>
ParseFilename's movie-IMDB pattern now recognizes parenthesized years and
brace-wrapped service IDs, so names like "Movie (2024) {tmdb-1015812}" no
longer truncate to "Movie (2024) {tmdb". The ID kind is captured (imdb,
tmdb, tvdb, tt; IDs widened to 7-9 digits for modern IMDb IDs) and
emitted as an "id:<kind>:<value>" line.
Parsed IDs ride along in MetadataSearchTerms.movie as a MetadataFileID.
TheMovieDB answers direct lookups (movie/{id} for TMDb IDs, find +
external_source=imdb_id for IMDb IDs) as a movieIDSearch; the search
sheet, the queue metadata action, and the AppleScript fetch-metadata
command try the direct lookup first and fall back to the title search
when the ID is unknown or the provider doesn't support it. Index-based
AppleScript result commands keep the name search by design.
Co-Authored-By: Claude Code <noreply@anthropic.com>
importFilesDirectly mirrors the open panel's extension dispatch, so
AppleScript `import file` now sends .txt/.csv to addChapters/
updateChapters and everything else to FileImportController; the chapter
track created on an MKV doc gets the tags-only trackId/
updateChangeCount bookkeeping in didSelect(chapters:). searchChapters
moves to the always-valid validation group, though CLAUDE.md now
records that it is orphaned dead code with no UI entry point.
File > Optimize on a Matroska document forces writeMatroska's
structural branch: a full remuxer rebuild from the existing tracks,
the container-equivalent of atom-order optimize. Its validation uses
fileURL instead of hasFileRepresentation, which is always false for
tags-only models and kept the menu disabled forever.
Bump MP42Foundation for the tagsOnly importer fix that mirrors the
file's chapter atoms verbatim (offset first starts and tied zero
starts survive an edit); harness matrix PASS=324/0.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Delete: the phase-1 gate against deleting the chapter pseudo-track on
Matroska documents is obsolete now that chapter changes ride the
stream-copy remuxer — a removed pseudo-track simply makes the model
report "no chapters", which removes the Chapters element on save (the
same path emptying the Chapters tab already took). The toolbar Delete
button's validation is corrected too; it still rejected chapter-only
selections after deleteSelection was opened up.
Insert: the Actions toolbar gets a single "Insert a chapter" item, and
"Insert a chapter every" (previously MP4-only) is enabled on Matroska.
Both create the chapter track when the document has none, doing the
tags-only bookkeeping the model needs (dense display trackId,
updateChangeCount). A single insert lands 1s after the latest start,
clamped to the track duration, so it can never tie with a stored
chapter — ties get clamped +1ms on write and would silently shift the
user's own chapter times.
Language: the chapter row's language popup stays editable on MKV
documents (the value rides the remuxer's chapter rebuild, not the tag
writer, since the pseudo-track has no TrackEntry), and the Matroska
chapters snapshot carries it so a language-only edit triggers the
remux. Pairs with the submodule's ChapterLanguage round trip.
Co-Authored-By: Claude Code <noreply@anthropic.com>
The chapters tab leaves read-only jail on MKV docs: didSelect exempts
ChapterViewController from the tags-only blanket, and chapter-less docs
can gain chapters through the same txt/csv dispatch MP4 documents use
(selectFile's MKV branch and drag-drop now allow .txt/.csv alongside
the subtitle extensions; addChapters/updateChapters assign the display
trackId and flag the document dirty on MKV).
Chapter edits ride the remuxer, never the tag writer: Chapters sits
before the Clusters, so any size change shifts every following byte.
Document.mkvChaptersSnapshot holds the baseline rows and drives a
chaptersChanged check against the model (model-vs-model, because the
reader itself drops duplicate zero-timestamp atoms and those must not
look like user edits); when changed, remuxMatroska passes mp4.chapters
(or an empty track to delete every chapter) as the remuxer's
replacementChapters, then refreshes the snapshot so an untouched save
goes back to the byte-stable tag-writer path.
Verified live: add a chapter row in the UI, File>Save — the file gains
the atom (ties clamped to 1ms), mkvmerge/ffmpeg both read it, a
forced no-op re-save is byte-identical, and reopening shows all rows.
Co-Authored-By: Claude Code <noreply@anthropic.com>
MKV docs can now import .srt/.ssa/.ass subtitle files, written as
S_TEXT/UTF8 by MP42MkvRemuxer (submodule bump). Video/audio adds and
other subtitle formats stay refused by both sides.
- DocumentWindowController: split selectFile: validation so MKV docs
get an Import panel restricted to matroskaSubtitleExtensions (kept
in sync with the remuxer's gate); showImportSheet routes MKV docs
to importSubtitleTracksForMatroska, which imports each file with a
plain MP42FileImporter (no track-selection sheet), attaches the
conversion-settings defaults addTrack: asserts on, and assigns the
next display trackId. Drag-drop already funnels through
showImportSheet. didSelect skips
organizeAlternateGroups/inferMediaCharacteristics on MKV docs —
same TrackEntry-pairing protection as delete.
- Document: the tagsChanged check already caught additions; the
post-remux snapshot now appends the added tracks behind the kept
ones, matching the TrackEntry order in the written file, so a
later tags-only save pairs correctly instead of double-appending.
- ScriptCommand: the AppleScript "save as" command called
mp4.write(to:) directly, which muxed a QuickTime MP4 over a
Matroska document. Route isMatroska documents through
Document.save(saveAsOperation) so writeMatroska picks the
tag-writer/remux path and enforces the mkv destination.
Verified with the /tmp/subler-mkv-test harness (matrix PASS=276: add
srt/ass, add+drop mix, no-cues source, bad-file and drop-all
refusals, idempotent re-save, post-add tag edit) and against the
live app (scripted import + save on a fixture copy; output checked
with mkvmerge/mkvextract/ffmpeg and reopened cleanly).
Co-Authored-By: Claude Code <noreply@anthropic.com>
.mkv/.mka/.mks now open directly into a tags-only document instead of
forcing the convert-import sheet:
- Metadata, cover art, and the four per-track fields Matroska stores
(name, language, enabled, subtitle forced) save back into the same
file via MP42MkvTagWriter; MP4-only properties stay read-only.
- Real tracks can be deleted and Save-As is enabled; both go through
MP42MkvRemuxer's stream-copy rebuild (Document keeps an importer-order
track snapshot and pairs TrackEntry elements by object identity).
Destinations must stay .mkv/.mka/.mks.
- Info.plist: the Matroska document type becomes Editor so NSDocument
offers .mkv Save-As instead of defaulting to the MP4 type.
- Delete on MKV docs skips organizeAlternateGroups/
inferMediaCharacteristics because they reorder the model, which the
TrackEntry pairing depends on; chapter rows stay undeletable.
Bumps MP42Foundation for the Matroska tagging/remux support.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Add a General preferences option controlling where the Save As panel
opens: the last used folder (default), the same folder as the
imported file, or a custom folder chosen by the user.