27 Commits
Author SHA1 Message Date
Scott GarrettandClaude Code 51112947fb Build sup2vob into the app bundle so it ships and stays fresh
A "Build sup2vob CLI" run-script phase on the Subler target runs the
submodule's Makefile (incremental — a no-op unless the conversion
sources changed) and installs the product to Contents/MacOS/sup2vob.
Every Subler build refreshes the CLI; a terminal sup2vob can be a
symlink into the bundle instead of a copied `make install`.

extractsubs finds that bundle-internal sup2vob automatically: PATH
first, then the script's own ../MacOS/sup2vob sibling, so running the
copy inside Subler.app/Contents/Resources works with no install at all
(verified with sup2vob absent from PATH: same 1920x1080 .sub/.idx).

The phase walks the source tree, so it opts the Subler target out of
ENABLE_USER_SCRIPT_SANDBOXING — a build-time shell-script file-access
setting only, no effect on the app's runtime security posture.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-28 23:25:40 -05:00
Scott GarrettandClaude Code c08d607baa Ship the extractsubs subtitle-extraction helper with the app
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>
2026-11-28 22:58:27 -05:00
Scott GarrettandClaude Code f20ad7ee45 Search metadata directly from IDs embedded in file names
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>
2026-11-28 13:10:25 -05:00
Brett Pynn a48cb77aac Strip leading zeroes while preserving a real numeric zero (for example, S00 specials). (#160)
I always forget the regex syntax, so I can't really review the changes, but if it works…
2026-10-01 08:08:49 +02:00
Damiano Galassi e07c39b039 Modernize MP4Dump 2025-03-10 10:00:05 +01:00
Damiano Galassi abd3b99fde Remove unneeded titles from xib files 2024-07-03 12:04:23 +02:00
Damiano galassi ab92c08552 Fix filename parser if the file name contains 'x265', patch by maury. 2023-01-27 17:07:17 +01:00
Damiano galassi 31539fcbb2 Update MP4Dump project. 2022-08-12 11:09:06 +02:00
Damiano Galassi ed4ab26280 Fix MP4Dump. 2021-02-02 10:55:44 +01:00
Damiano Galassi c9bceeb42f Fix MP4Dump default log verbosity. 2020-09-24 09:41:58 +02:00
Damiano Galassi a51c3a28ce Fixes a couple of issues on macOS 11 sdk. 2020-07-10 13:10:35 +02:00
Damiano Galassi c2b5b6e994 cosmetics. 2020-01-28 11:53:54 +01:00
Damiano Galassi f9e6d47ff1 OCD. 2019-10-24 12:15:47 +02:00
Damiano Galassi 6bb26182ba Update MP4Dump. 2019-10-15 08:32:21 +02:00
Damiano Galassi 154a56f6d4 Add a m4b uti to MP4Dump. 2019-09-06 09:50:32 +02:00
Damiano Galassi 4ee63b28e0 Update MP4Dump 2019-05-14 15:08:19 +02:00
Damiano Galassi 40844819e1 Update MP4Dump project 2018-02-16 12:17:44 +01:00
Damiano Galassi 76745bfa05 Let mp4dump open mov files. 2017-09-12 11:32:26 +02:00
Damiano Galassi ff09370930 Upgrade project. 2017-08-31 11:05:32 +02:00
Damiano Galassi d9a4f56fc4 Update MP4Dump 2017-02-24 11:26:02 +01:00
Damiano Galassi 9b70bf6353 OCD. 2016-09-11 08:38:45 +02:00
Damiano Galassi d7982171fd Update MP4Dump. 2016-09-09 17:10:28 +02:00
Damiano Galassi f6b0962970 Set season to 0 if not available 2015-09-05 13:11:15 +02:00
Damiano Galassi 81657e9091 Fix MP4Dump build. 2014-11-22 13:07:43 +01:00
Damiano Galassi 04a3344985 Add “Alert Tone” media kind. 2013-12-14 09:42:49 +01:00
Damiano Galassi b989ae5c59 Remove three evil .DS_Store. 2013-11-18 13:39:28 +01:00
Damiano Galassi fcc318e844 Initial import 2013-11-18 13:28:07 +01:00