[TMDB/Movie] Fix incorrect tmdb match

Any questions? Need some help?
Post Reply
toddke
Posts: 8
Joined: 28 Mar 2025, 19:12

[TMDB/Movie] Fix incorrect tmdb match

Post 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?
toddke
Posts: 8
Joined: 28 Mar 2025, 19:12

Re: [TMDB/Movie] Fix incorrect tmdb match

Post 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
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TMDB/Movie] Fix incorrect tmdb match

Post 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]

:idea: --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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TMDB/Movie] Fix incorrect tmdb match

Post 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"
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TMDB/Movie] Fix incorrect tmdb match

Post 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.
:idea: Please read the FAQ and How to Request Help.
toddke
Posts: 8
Joined: 28 Mar 2025, 19:12

Re: [TMDB/Movie] Fix incorrect tmdb match

Post 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).
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TMDB/Movie] Fix incorrect tmdb match

Post 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. :lol:

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


toddke wrote: 02 Apr 2025, 14:02 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).
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.
:idea: Please read the FAQ and How to Request Help.
toddke
Posts: 8
Joined: 28 Mar 2025, 19:12

Re: [TMDB/Movie] Fix incorrect tmdb match

Post by toddke »

rednoah wrote:FileBot works in mysterious ways. I also can't explain that one. :lol:
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
Post Reply