extractsubs pulls the subtitle tracks out of mkv/mp4 files with ffmpeg
stream copy — .srt/.ass/.ssa/.vtt text, .sup for PGS (then converted to
.sub/.idx with sup2vob --full) — defaulting to English tracks, --all for
every language. Output names follow the shape the app's importers probe
(<input>.<track>[.<type>].<lang>.<ext>), so extracted files drag back
into Subler already named and tagged.
The script lives in Utilities/ beside ParseFilename and is copied into
the app bundle's Resources by the build (like ParseFilename, but nothing
in the app invokes it — it's for terminal use). Dependencies are checked
up front (ffprobe/ffmpeg/sup2vob on PATH; mkvtoolnix plus python3 only
for the S_TEXT/WEBVTT rescue path).
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>