Commit Graph
28 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 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 0f122f6242 Save the view controllers size. 2019-08-07 15:21:43 +02:00
Damiano Galassi 106813d5e5 Refactor some windows to views. 2019-08-07 14:40:24 +02: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 10bef07af1 Fix build on Xcode 10 b6. 2018-08-14 07:49:15 +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 820e088ddc Switch to view-based table views in ChapterSearchController. 2018-03-23 14:01:43 +01:00
Damiano Galassi 94f5f85124 Refactor the document window controller and the prefs controller. Some regression still in there. 2018-02-08 17:50:39 +01:00
Damiano Galassi 505d3c3d84 nil the tableview data source so it doesn't try to reload data after the controller has been deallocated. 2017-10-18 11:27:46 +02:00
Damiano Galassi 32eba2590c Remove isHdVideo in MP42Utilites, cleanup some switch cases. 2017-10-09 15:00:31 +02:00
Damiano Galassi ecc0568c3e Refactor the code that extract the search terms. 2017-10-09 14:30:19 +02:00
Damiano Galassi 668b9f692b Rewrite some SBDocument parts in Swift. 2017-10-09 12:00:28 +02:00
Damiano Galassi 422e1c9853 Convert SBMetadataResult to Swift. 2017-08-09 09:27:43 +02:00
Damiano Galassi 5e37d0a2cd Rename things. 2017-08-05 09:28:30 +02:00
Damiano Galassi 099dd4466b Remove some unused code. 2017-08-04 17:04:11 +02:00
Damiano Galassi d44b865d5a Do not disable the tableView in the chapters import sheet. 2017-08-02 09:30:54 +02:00
Damiano Galassi fde4c46cda Remove an optional var. 2017-08-02 09:11:51 +02:00
Damiano Galassi ed4fae3623 Improve chapters results 2017-08-01 20:15:57 +02:00
Damiano Galassi 495113181b Renamed some things. 2017-08-01 13:21:28 +02:00
Damiano Galassi 1be37f9e15 Make it on par with the old controller. 2017-08-01 12:27:03 +02:00
Damiano Galassi 747eb97682 OCD 2017-08-01 11:25:04 +02:00
Damiano Galassi c44e74d193 Switch to the Swift chapter importer. 2017-08-01 11:05:31 +02:00
Damiano Galassi 23f626be9f Migrate the chapter importer to Swift. 2017-07-31 17:52:08 +02:00