Page 1 of 1
[TMDB/Movie] Fix incorrect tmdb match
Posted: 01 Apr 2025, 21:40
by toddke
In general, FileBot's automatic matching has been _awesome_. However, I'm currently running into a problem where FileBot 1) doesn't display a disambiguation dialog and 2) matches the movie incorrectly. I've tried both the GUI and the CLI [using
--mode interactive.
The movie in question is
Beast (2022)/Beast (2022) - 2160p - WEB-DL - CMRG.mkv. It should match
this movie, instead it
always automatically matches this
Netflix movie.
I'm guessing it's because the Netflix movie was released first that year. In fact, there were
three movies titled "Beast"
released in 2022.
How can I fix the match? Is there a way for me to specify a particular tmdb id?
Re: [TMDB/Movie] Fix incorrect tmdb match
Posted: 01 Apr 2025, 22:18
by toddke
Came across another example; though this one may be explainable due to the usage of an apostrophe.
file:
Film Stars Don't Die in Liverpool (2017)/Film Stars Don't Die in Liverpool (2017) - 1080p - BluRay - EPSiLON.mkv
correct match:
398174
automatic match:
17501
Re: [TMDB/Movie] Fix incorrect tmdb match
Posted: 02 Apr 2025, 07:18
by rednoah
e.g. use the
--q option:
Console Output: Select all
$ filebot -rename *.mkv --db TheMovieDB -non-strict --format "{plex.id}" --q 760741 --action TEST --log INFO
[TEST] from [Beast (2022) - 2160p - WEB-DL - CMRG.mkv] to [Movies/Beast (2022) {tmdb-760741}/Beast (2022).mkv]
e.g. use the
--filter option:
Console Output: Select all
$ filebot -rename *.mkv --db TheMovieDB -non-strict --format "{plex.id}" --filter "actors =~ /Idris Elba/" --action TEST --log INFO
[TEST] from [Beast (2022) - 2160p - WEB-DL - CMRG.mkv] to [Movies/Beast (2022) {tmdb-760741}/Beast (2022).mkv]
--q is useful if you know the ID in advance.
--filter is useful if you don't exactly know what you want in advance, but can give hits like
"a movie with Idris Elba",
"not a Korean movie", etc.
Re: [TMDB/Movie] Fix incorrect tmdb match
Posted: 02 Apr 2025, 11:59
by rednoah

Can you share
MediaInfo properties for the two files you are having issues with?
Shell: Select all
filebot -script fn:mediainfo "Beast (2022)/Beast (2022) - 2160p - WEB-DL - CMRG.mkv" "Film Stars Don't Die in Liverpool (2017)/Film Stars Don't Die in Liverpool (2017) - 1080p - BluRay - EPSiLON.mkv"
Re: [TMDB/Movie] Fix incorrect tmdb match
Posted: 02 Apr 2025, 12:11
by rednoah
toddke wrote: ↑01 Apr 2025, 22:18
Came across another example; though this one may be explainable due to the usage of an apostrophe.
file:
Film Stars Don't Die in Liverpool (2017)/Film Stars Don't Die in Liverpool (2017) - 1080p - BluRay - EPSiLON.mkv
This one is explained by starting with
"Film". It's stupid but that's how corner cases / false positives usually look to us humans who just know better.
Re: [TMDB/Movie] Fix incorrect tmdb match
Posted: 02 Apr 2025, 14:02
by toddke
Awesome! Thanks for the help. I'll use
--q to unblock me.
I actually "fixed" the issue with
Film Stars Don't Die in Liverpool (2017) by simply renaming the file to exclude the apostrophe; ie. using
Dont instead of
Don't. Once it matched, I renamed the file back to its original.
Here is the
mediainfo for Beast (2022).
I found one last file failing to match correctly,
Jackpot! (2024)/Jackpot! (2024) - 2160p - WEB-DL - FLUX.mkv;
tmdb 1094138. Here is the
mediainfo for Jackpot! (2024).
Re: [TMDB/Movie] Fix incorrect tmdb match
Posted: 02 Apr 2025, 17:36
by rednoah
toddke wrote: ↑02 Apr 2025, 14:02
I actually "fixed" the issue with
Film Stars Don't Die in Liverpool (2017) by simply renaming the file to exclude the apostrophe; ie. using
Dont instead of
Don't.
FileBot works in mysterious ways. I also can't explain that one.
Console Output: Select all
$ filebot -rename Film* --db TheMovieDB -non-strict --action TEST --log INFO
Movie not found: Movies/Film Stars Dont Die in Liverpool (2017)/Film Stars Dont Die in Liverpool (2017).mkv
Failed to identify or process any files
Thanks for the mediainfo tables for these files. I was looking additional test cases to check and verify the recent
Enhance Movie Matching Accuracy with Runtime-Based Disambiguation changes. The
latest revision should work much better for these two specific examples since the mismatch is just a 10min short film in each case which can easily be eliminated once we compare actual video duration with expected movie runtime.
Re: [TMDB/Movie] Fix incorrect tmdb match
Posted: 02 Apr 2025, 19:26
by toddke
rednoah wrote:FileBot works in mysterious ways. I also can't explain that one.

Oh. I only got it working through the GUI. After changing the name, I was provided with a disambiguation dialog. So, still a manual process, but it let me match the correct movie [this was before I learned about
--q].
If I have any other examples I'll be sure to include them here for your test cases.
Thanks again for all of the quick responses @rednoah