mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #8980] Improve TMDB matching #11931
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/jellyfin/jellyfin/pull/8980
State: closed
Merged: No
Note: This is more a proposal than a final solution
In some cases, mainly with n-ology, if the first episode is named only based on the first movie name, another of the movie can be chosen from the imdb list, even if a perfect match exists.
The current implementation takes the first result and even if tmdb should store per relevance (close match, popularity) this is not correct
The proposed solution tries to find perfect or good match for the movie instead of the first one.
Results for
Foo 1Foo 2FooFoo 3The Invincible FooChosen Result for
Foo 1:FooResult for
Bar 3Bar SnibarBaroidBarBarsBar³Bar: CoBarBars vs FooChosen Result for
Bar 3:Bar³Result for
Un film AnglaisAn english movie: The first episodeAn english movie: The third episodeAn english movie: The second episodeAn english movieAfter the Movie: The first episode...
Chosen Result for
Un film Anglais:An english movie: The first episode(This was luck)Result for
An english movieAn english movie: The second episodeAn english movie: The first episodeAn english movie: The third episodeAn english movieAfter the Movie: The first episode...
Chosen Result for
An english movie:An english movie(This is not correct, this is the old 197x movie. But this is an exact match)The current solution is actually not ideal and a Levenshtein distance could be a good idea here. This is juste an example.
This would also be more resilient to typos.
Some questions remains since I'm new to JellyFin
1is maybe arbitrary. But1means is not always a relevant information when 2 has a signification