Scott GarrettandClaude Code 13255140e9 Rank metadata search results and honor filename IDs on tagged files
extractSearchTerms dropped a filename's {tmdb-…} ID whenever the movie was
already tagged (name+release-date+media-kind present), returning a bare title
and ignoring the embedded ID — so a search on a tagged or previously-searched
file came back as a fuzzy title list. That branch now also parses the filename,
so the direct ID lookup fires regardless of prior tagging.

Also rank movie title-search results so exact title matches sort to the top of
the fuzzy provider list, and recover the release year from the filename
(ParseFilename strips it from the title without reporting it) to pick the
default entry: exact+year, then exact, then year-only, then the provider's own
order (a stable sort, so relevance survives within each band). Applied in the
search sheet, the queue metadata action, and both AppleScript commands with
identical ranking so scripted indexes stay aligned; the sheet now highlights
the default pick. Bracketed years win over bare dot/space years so
resolutions like .1920.1080p don't win.

Bump the fork version to 1.9.5mkv2.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-29 23:01:43 -05:00
2025-09-18 15:27:37 +02:00
2024-07-19 17:21:05 +02:00
2024-07-19 18:25:15 +02:00
2026-09-29 12:14:37 +02:00
2015-08-19 18:52:35 +02:00
2024-07-03 11:14:00 +02:00
2024-07-03 11:14:00 +02:00
2024-07-03 11:14:00 +02:00
2026-10-05 08:09:19 +02:00
OCD
2019-03-11 18:36:10 +01:00

Subler

Subler is a macOS app for muxing and tagging MP4/M4V/M4A files. The main features include:

  • Creation of tx3g subtitle tracks, compatible with all Apple devices (iPod, Apple TV, iPhone, QuickTime).
  • Mux video, audio, chapters, subtitles and closed-caption tracks from mov, mp4 and mkv sources.
  • Raw formats: H.264 elementary streams (.h264, .264), AAC (.aac), AC3 (.ac3), Scenarist (.scc), VobSub (.idx).
  • Metadata editing with TMDb, TVDB and iTunes Store lookups.

About this fork

This is a standalone working copy maintained at git.technomancer.com in Scott Garrett's Misc Files and Scripts; it is not a staging ground for pull requests against upstream. The original project is SublerApp/Subler by Damiano Galassi, and this tree starts from its history.

Changes on top of upstream

Native Matroska support — the headline change. .mkv/.mka/.mks files open directly and are edited in place instead of being converted to MP4:

  • Tags and the four per-track fields Matroska stores (name, language, enabled, forced subtitle) rewrite the file in place (mkvpropedit-style), never touching the media clusters.
  • Deleted or added tracks, and Save-As, go through a stream-copy remuxer that copies every block verbatim and rebuilds the container bookkeeping (SeekHead, Cues, Duration).
  • Chapters are editable: update via .csv, add via .txt (mp4chaps) import, insert one chapter or add them at a fixed interval; chapter changes ride the remuxer.
  • Subtitle tracks (.srt/.ssa/.ass) can be added to an open Matroska document.
  • File ▸ Optimize performs a full structural rebuild on Matroska documents; the AppleScript save as command routes Matroska correctly.
  • The companion MP42Foundation submodule carries the engine for all of this (EBML scanner, tag mapping, in-place tag writer, stream-copy remuxer, importer changes).

VobSub muxing — added VobSub tracks are muxed at the frame size declared in their .idx file.

Metadata search from file names — names carrying embedded IDs such as The Movie (2024) {tmdb-1015812} or {imdb-tt15239678} now parse to a clean title, and the ID drives a direct TMDb lookup (with title-search fallback) in the metadata search sheet, in queue jobs, and in the AppleScript metadata fetch command.

No auto-updates — the upstream Sparkle integration is removed (updater menu item, appcast keys, SPM package): a fork build pointed at subler.org's appcast would offer upstream builds signed with someone else's key. The fork version is 1.9.5mkv, and the app has no third-party package dependencies.

Build and run

Everything the app builds from lives on this server: the MP42Foundation submodule, and inside it a nested contrib submodule (the vendored mp4v2 sources). All three repos are public and clone over HTTPS — no account or key needed.

Clone the repository with all submodules

git clone --recurse-submodules https://git.technomancer.com/Scott-Files/SublerMKV.git

Contributors with push access use the SSH clone URL instead (gitea@git.technomancer.com:Scott-Files/SublerMKV.git — the SSH user is gitea); to keep submodule operations on SSH too, add git config --global url."gitea@git.technomancer.com:".insteadOf https://git.technomancer.com/.

If you already cloned without submodules, cd into the SublerMKV directory and fetch them (including the nested one) with

git submodule update --init --recursive

To bring an existing checkout up to date:

git pull --rebase
git submodule update --init --recursive

There are no other dependencies — no Swift packages are fetched; everything above is the full build input.

Open Subler.xcodeproj in Xcode, select the Subler scheme (Product → Scheme → Subler) and press Run. Command-line builds work as-is (the projects target the toolchain-recommended deployment target, unlike upstream's 10.13, which recent toolchains refuse):

xcodebuild -project Subler.xcodeproj -scheme Subler -configuration Debug build

There is no test target; changes are verified by building and running the app.

S
Description
This is a fork of Subler 1.9.5. I have added full support for the editing of MKV tags (where allowed; MKV is restrictive on allowed tags), and fixed a number of bugs and filename parsing annoyances.
Readme GPL-2.0
11 MiB
0 Stars 1 Watchers 0 Forks
Languages
Swift 92.4%
Perl 4.7%
Shell 1.7%
Objective-C 0.6%
Rich Text Format 0.6%