Commit Graph
271 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 a7739840ee Improve TVDB tv series name match 2026-10-03 20:17:52 +02:00
Damiano Galassi d930bdb0a6 Do not retrieve the iTunes Store artworks when using a different provider
The iTunes Store API seems quite broken lately, and it doesn't add anything of value
2026-09-30 18:01:34 +02:00
Damiano Galassi 33a7665c5a Order the top artworks to make to make the various size options easier to pick 2026-09-30 17:21:35 +02:00
Konstantin Klitenik ed69edf45f Use .standard for portrait images in TheTVDB (#144) 2026-08-27 16:50:37 +02:00
Damiano Galassi 4f2c8f2509 Try to match the translated title 2026-08-27 16:45:50 +02:00
Damiano Galassi 51f395469c Do simpler API calls for a single TVDB episode 2026-08-17 09:54:38 +02:00
Damiano Galassi c01460cb43 Load all TVDB episodes if there are more than 500 2026-08-17 09:24:19 +02:00
Damiano Galassi fc082f3bca Make more fields optional 2026-08-16 08:57:23 +02:00
Damiano Galassi 9122f520db TVDB movie metadata search 2026-08-14 14:46:01 +02:00
Damiano Galassi f58142a250 Fetch TVDB episodes metadata in another language if they are not available in the selected language 2026-08-14 10:46:39 +02:00
Damiano Galassi 68bef59a9f Improve TVDB languages selection 2026-08-10 18:24:46 +02:00
Damiano Galassi 78ddedb92a Fetch TVDB languages 2026-08-10 14:41:39 +02:00
Damiano Galassi 9aaf78acd2 Part 2 of TVDB v4 API 2026-08-07 13:10:08 +02:00
Damiano Galassi d6cd740aa8 Part 1 of TVDB v4 API 2026-08-06 17:20:32 +02:00
Damiano Galassi aeda6095a8 Get higher quality images from AppleTV
Fix #25
2025-10-13 15:32:20 +02:00
Damiano Galassi e016c5fc60 Hook up the service content id to all the metadata providers 2025-09-11 16:29:29 +02:00
Damiano Galassi 5890c9abe2 Fix the none artwork queue option
Fix #59.
2025-07-25 18:06:51 +02:00
Damiano Galassi bf012927b4 Expose the services ids in the metadata map 2025-06-24 10:02:42 +02:00
Damiano Galassi f3226469d7 Add experimental AppleTV v3 importer by Are Digranes 2025-02-05 11:38:36 +01:00
Michael Mock 3fe294f582 Fix the issue where Apple TV metadata isn't returned for TV/Movies that Apple doesn't currently sell in the given region. 2024-12-19 09:05:47 +01:00
Damiano Galassi 64f7ba85a7 Try to limit the random artworks returned by the AppleTV provider 2024-07-20 07:58:51 +02:00
Damiano Galassi 75d587ac9d Change AppleTV provider url. 2022-07-03 08:24:19 +02:00
Damiano galassi 570f8f2d79 Fix © character. 2022-04-10 10:04:59 +02:00
Richard Lyon 61c8ae3567 Changed v=60 to v=58 to fix AppleTV Metadata Loads
For some reason, v60 moved to v3 pathing.  Random versions
remain on v2.  I chose v=58.  Seems to work. ::shrug::
2022-04-09 22:34:03 -04:00
Damiano Galassi 3bfe6e1561 Bump version to 1.7.2. 2022-01-02 09:32:22 +01:00
Damiano Galassi b8702a3955 Fix AppleTV artworks. 2021-09-04 12:45:37 +02:00
Damiano Galassi 51ea05d776 Reorder TheMovieDB artworks. 2021-06-05 09:22:21 +02:00
Damiano Galassi 9cfda0f95f Bump api version. 2021-05-22 10:42:54 +02:00
Damiano Galassi c5726b2fda Update copyright year. 2021-02-02 10:57:24 +01:00
Damiano Galassi 89196df6b0 Replace * with - when searching on TheTVDB. 2020-11-12 10:41:47 +01:00
Damiano Galassi cde0625242 Return the first show with the exact title match. 2020-10-26 10:12:18 +01:00
Damiano Galassi f80e201545 Only return the tv shows names. 2020-10-03 12:39:27 +02:00
Damiano Galassi 5d37a0bac3 Improve AppleTV provider seasons matching. 2020-10-03 11:49:12 +02:00
Damiano Galassi 3ead365167 Handle null duration from AppleTV provider. 2020-10-02 09:22:46 +02:00
Damiano Galassi 81f52f5237 Use a case insensitive comparison to sort results. 2020-09-22 12:19:50 +02:00
Damiano Galassi 865cb6c471 Update copyright year. 2020-09-22 12:19:31 +02:00
Damiano Galassi 51d07dca1e Fix AppleTV importer. 2020-03-26 13:23:25 +01:00
Sergey Armodin c902080b75 Merged in makoni/subler (pull request #28)
String type for "url" field for AppleTV -> Content model

* String type for "url" field for AppleTV -> Content model

* fix
2020-03-05 16:40:58 +00:00
Damiano Galassi c5b007ef0c Ignore season number < 1. 2020-02-14 15:42:04 +01:00
Damiano Galassi f4ac5c0262 Remove some duplicated code. 2020-02-11 17:07:02 +01:00
Damiano Galassi fbc464e643 Rework the preference to avoid stringly typed properties. 2020-02-07 15:31:10 +01:00
Damiano Galassi 2694bdee45 Improve MediaKind usage. 2020-02-04 17:54:08 +01:00
Damiano Galassi 3c70f5568d Move Ratings.swift. 2020-02-04 17:20:22 +01:00
Damiano Galassi 4cccffedd0 Improve AppleTV ratings. 2020-02-04 17:19:16 +01:00
Damiano Galassi 93e82651ea Use first(where:) instead of filter().first 2020-02-04 14:03:30 +01:00
Damiano Galassi 6c29faf8f4 Move ratings code to app level. 2020-02-04 13:41:43 +01:00
Damiano Galassi 2b8a1ac11d Use a swift standard library method to split strings. 2020-02-04 12:35:31 +01:00
Damiano Galassi a368ad473e Use the right episode number to fetch TheMovieDB episodes images. 2019-11-25 09:33:01 +01:00