Commit Graph
36 Commits
Author SHA1 Message Date
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
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
Damiano Galassi 78ddedb92a Fetch TVDB languages 2026-08-10 14:41:39 +02:00
Damiano Galassi 90fe211d8f Update localizations 2024-07-19 18:25:15 +02:00
arnnalddo fd08aeb766 Make some strings localizable 2024-07-03 11:21:58 +02:00
Damiano Galassi ca866537a8 Reneable some deinits 2024-06-30 12:48:31 +02:00
Damiano Galassi fc6bc09ce2 Partially enable Swift concurrency checks 2024-06-27 11:57:20 +02:00
Damiano Galassi 687348027d Improve labels color. 2020-02-13 11:07:31 +01:00
Damiano Galassi 879bf33c2b Improve artwork collection view compatibility with older macOS versions. 2019-09-14 14:05:46 +02:00
Damiano Galassi 106813d5e5 Refactor some windows to views. 2019-08-07 14:40:24 +02:00
Damiano Galassi 58e20d9903 Fix a couple of regressions. 2019-03-14 08:25:41 +01:00
Damiano Galassi e16ea22a23 OCD 2019-03-11 18:36:10 +01:00
Damiano Galassi f993d8dd81 Mark some classes as final. 2019-03-05 10:41:54 +01:00
Damiano Galassi 7745190f4d Fix unnamed episodes table cells. 2018-10-31 15:24:33 +01:00
Damiano Galassi 36d40f88a9 Improve tv shows names suggestions. 2018-10-22 11:27:42 +02:00
Damiano Galassi 10bef07af1 Fix build on Xcode 10 b6. 2018-08-14 07:49:15 +02:00
Damiano Galassi 12a2797d8e Improve the rounded background when the text is truncated. 2018-06-29 09:52:57 +02:00
Damiano Galassi 37356b8cc5 Rework ArtworkSelectorController to use a NSCollectionView instead of the deprecated IKImageBrowserView on 10.11+ 2018-06-27 22:49:31 +02:00
Damiano Galassi 5b4600b9dd Convert to Swift 4.2 2018-06-07 11:30:39 +02:00
Damiano Galassi 983151aeeb Import MP42Foundation. 2018-05-02 13:06:16 +02:00
Damiano Galassi 8e7f2e1b73 Use a view-based table view in the metadata search window. 2018-03-23 12:46:55 +01:00
Damiano Galassi cd27e2ce52 Remove 10.9 support. 2018-02-03 10:43:41 +01:00
Damiano Galassi ecc0568c3e Refactor the code that extract the search terms. 2017-10-09 14:30:19 +02:00
Damiano Galassi 388297b538 Use the existing metadata to populate the search fields. 2017-10-09 13:21:41 +02:00
Damiano Galassi 668b9f692b Rewrite some SBDocument parts in Swift. 2017-10-09 12:00:28 +02:00
Damiano Galassi 241bc4e235 Fix some localised strings. 2017-09-19 12:16:55 +02:00
Damiano Galassi 05f27e845a Move Preferences to Swift. 2017-08-21 16:30:53 +02:00
Damiano Galassi 62686b8c66 Rewrite MetadataPrefsViewController in Swift. 2017-08-13 07:37:01 +02:00
Damiano Galassi 422e1c9853 Convert SBMetadataResult to Swift. 2017-08-09 09:27:43 +02:00
Damiano Galassi b10c99ba58 Remember the preferred artwork type in the ArtworkSelectorController 2017-08-06 20:24:20 +02:00
Damiano Galassi daa41aad63 Small fixes and some tweaks. 2017-08-05 14:43:04 +02:00
Damiano Galassi c9b9ccfea1 Pass an URL. 2017-08-05 10:51:40 +02:00
Damiano Galassi 5e37d0a2cd Rename things. 2017-08-05 09:28:30 +02:00
Damiano Galassi 0edbccbf04 Improve the Swift metadata search controller. 2017-08-05 08:00:24 +02:00
Damiano Galassi 099dd4466b Remove some unused code. 2017-08-04 17:04:11 +02:00
Damiano Galassi 320d9cdd81 Partial rewrite of SBMetadataSearchController in Swift. 2017-08-04 17:02:08 +02:00