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>
This commit is contained in:
1 parent
a153763019
commit
13255140e9
8 files changed
+148
-23
No files matched your search
+19
-2
@@ -8,7 +8,7 @@ original Subler checkout.
|
||||
from the GitHub Subler project.
|
||||
- **Since then**: 18 commits in the app repository and 15 in the
|
||||
**MP42Foundation** submodule (2026-11-25 → 2026-11-28).
|
||||
- **Fork identity**: version `1.9.5mkv1` (upstream base + `mkv` + a fork
|
||||
- **Fork identity**: version `1.9.5mkv2` (upstream base + `mkv` + a fork
|
||||
change counter), builds as `SublerMKV.app` (`org.galad.SublerMKV`);
|
||||
development moved from GitHub to Gitea (`git.technomancer.com:Scott-Files/`).
|
||||
|
||||
@@ -138,6 +138,23 @@ inside the app bundle so they never drift from the app's own code.
|
||||
The search sheet, the queue metadata action, and the AppleScript
|
||||
fetch-metadata command try the direct TMDb lookup first and fall back to
|
||||
title search when the ID is unknown or unsupported.
|
||||
- **ID lookup now fires on already-tagged files**: `extractSearchTerms`
|
||||
short-circuited to the file's existing name/release-date/media-kind when a
|
||||
movie was already tagged, returning a bare title and **dropping the
|
||||
embedded ID** — so a second search on a tagged (or previously-searched)
|
||||
file ignored its `{tmdb-…}`. That branch now also parses the file name, so
|
||||
the direct lookup works regardless of prior tagging.
|
||||
- **Search-result ranking**: movie title-search results are re-ordered (in the
|
||||
sheet, the queue metadata action, and both AppleScript commands, with
|
||||
identical ranking so scripted indexes stay aligned) so **exact title matches
|
||||
sort to the top** of the fuzzy TMDb list, with a **parsed release year**
|
||||
used to pick the default entry — exact+year first, then exact, then
|
||||
year-only, then the provider's own order (a stable sort, so relevance
|
||||
survives within each band). The year is recovered from the file name in
|
||||
Swift (ParseFilename strips it from the title without reporting it);
|
||||
bracketed years `(2026)` win over bare dot/space years so resolutions like
|
||||
`.1920.1080p` don't win. The chosen default is also highlighted in the
|
||||
results list.
|
||||
|
||||
## 4. Fork infrastructure and distribution
|
||||
|
||||
@@ -151,7 +168,7 @@ inside the app bundle so they never drift from the app's own code.
|
||||
updates itself however its users choose.
|
||||
- **Fork version scheme `<upstream>.mkv<N>`** distinguishes fork builds from
|
||||
upstream without touching the forked-from version: the trailing counter in
|
||||
`MARKETING_VERSION`/`CURRENT_PROJECT_VERSION` (currently `1.9.5mkv1`)
|
||||
`MARKETING_VERSION`/`CURRENT_PROJECT_VERSION` (currently `1.9.5mkv2`)
|
||||
increments with each batch of fork changes, and restarts at 1 whenever
|
||||
upstream's base version moves.
|
||||
- **Build output renamed `SublerMKV.app`**: target renamed and `PRODUCT_NAME`
|
||||
|
||||
Reference in new issue
Block a user