Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Support for macOS users
Post Reply
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

Hello,

accidentally found strange behavior:

Trying to rename Coma (2019).mkv .. But always getting wrong tmdb id.

Filebot always fetches:
https://www.themoviedb.org/movie/1409360-coma

Instead of:
https://www.themoviedb.org/movie/430155


Renaming it to Coma (2020).mkv works, but is in my case no workaround
for > 5.000 Files. I need a pretty reliable solution. Just came accidentally over this issue.
Sometimes relase year on tmdb changes...
Don't want to know how many files are affected, too.

Already Tried to emtpy cache, strict matching etc.
Maybe there's a dialog when Filebot isn't shure about matches?

Any help appreciated!
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Always getting wrong result

Post by rednoah »

:?: So you have a file named Coma (2019) and you want FileBot to match it to Coma (2020) and not Coma (2019)? That's a bit tricky. FileBot automatic matching will of course match Coma (2019) to Coma (2019) even (and especially in) Strict Mode because it's an exact match. Matching Coma (2019) to Coma (2020) over Coma (2019) would require some kind of additional hint. (NOTE: the --filter option could be used on the command-line, but the Desktop application has no equivalent)


:arrow: Q: How do I fix misidentified files?


:idea: You will have to fix the match manually. There are a number of ways to do this. If you've already loaded and matched lots of movies, and you want to fix one particular match before hitting the Rename button, then you can use Double-Click › Edit Match (or CTRL+M) to edit an individual item.

ScreenshotScreenshot


:arrow: You will want to somehow store the TMDB ID alongside the target file for future reference. FileBot will store xattr metadata by default but xattr metadata are easily lost if you're not careful or even aware. I'd use {plex.id} as format to embed the {tmdb-id} marker in the file path. Alternatively, Export NFO files will also do the trick.
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

Thank you for your fast reply!

So sadly there is no way to move FB to making suggestions more early when there are multiple matches?

Manually fixing kind of sucks - So I have to assume that my entire library is miss-matched by default and I need to double-check everything…

-remo
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

remo wrote: 08 Mar 2025, 14:11 So sadly there is no way to move FB to making suggestions more early when there are multiple matches?
:arrow: You can also Icon SHIFT-CLICK <database> to force manual input and selection of the series or movie.


remo wrote: 08 Mar 2025, 14:11 Manually fixing kind of sucks.
:?: How so? The movie selection dialog you get during matching is the same as the movie selection dialog you get when you edit a match. The work is the same, but there are benefits to doing the work after matching when everything is ready.

:idea: You could remove the (year) pattern from all your files though. Plain File Mode can rewrite file names easily. If the file name is Coma.mkv then FileBot will probably ask you to pick one.
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

„, but there are benefits to doing the work after matching when everything is ready.„

I don‘t know what you mean. Can you explain please?
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

remo wrote: 08 Mar 2025, 20:15 I don‘t know what you mean. Can you explain please?
It's much easier to go through the list if the list is already there. Also, you might not need to fix all matches.




rednoah wrote: 08 Mar 2025, 14:21
remo wrote: 08 Mar 2025, 14:11 Manually fixing kind of sucks.
:?: How so?
Your turn. What exactly do you see / do when it sucks?
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

With it sucks, I meant it is not practicable to manually edit 5k files.

Update: FB won‘t prompt when passing „Coma.mkv“ without year. FB still picks wrong match. I have to manually edit the file‘s attributes to find the correct version.

Is there any feature, that FB will produce any kind of log for files that are possible miss-matches or not obvious matching?

Or can I force FB to present movie selection dialog everytime?
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

remo wrote: 08 Mar 2025, 21:37 FB won‘t prompt when passing „Coma.mkv“ without year. FB still picks wrong match. I have to manually edit the file‘s attributes to find the correct version.
Sounds like you have previously confirmed the wrong match. Sounds like the previously stored xattr metadata is working correctly and making sure that the previously confirmed match is also the current match.

:idea: Here's what I get:
Screenshot


remo wrote: 08 Mar 2025, 21:37 Is there any feature, that FB will produce any kind of log for files that are possible miss-matches or not obvious matching?
You could try to come up with your own heuristics to try to find possible ID mismatches. No sane system would ever consider Coma (2019) a bad match for Coma (2019) based on name / year information alone, but since you have xattr metadata you could check for movie matches with suspiciously low runtime, that would work for this one specific case at the very least:

Console Output: Select all

$ filebot -mediainfo -r . --filter "runtime < minutes/2" --format "{fn} | {id} | {runtime} | {minutes}"
Coma (2019) | 1409360 | 15 | 124
** other heuristics are very much conceivable and likely necessary if you mean to find at least the majority of ID mismatches


remo wrote: 08 Mar 2025, 21:37 Or can I force FB to present movie selection dialog everytime?
Q: How do I fix misidentified files? says: "If series / movie auto-detection does not work, then you can use Icon SHIFT-CLICK <database> to force manual input and selection of the series or movie." Have you tried that yet? Does that not do what you mean to do?
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

xattr means that FB writes Information directly into the file itself?

„Icon SHIFT-CLICK <database>“

Did not tried it because I can‘t find it. Sorry
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

remo wrote: 08 Mar 2025, 23:00 xattr means that FB writes Information directly into the file itself?
Please read the xattr metadata documentation. Let me know if something is unclear or if you have any additional questions after reading the documentation.
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

Thank you. Got it with xattr :D

How about
„Icon SHIFT-CLICK <database>“
?

Can you give me some assistance please?
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

remo wrote: 09 Mar 2025, 07:34 SHIFT-CLICK <database>
:?: What exactly seems to be the problem? You don't know what a SHIFT-CLICK is? You don't know what a SHIFT key is? You don't know where to click? Perhaps something else? I'm genuinely curious. 🤔


:idea: A SHIFT-CLICK is when you left-click something with your mouse while holding down the SHIFT key on your keyboard.

Screenshot
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

I know what a shift click is :D
But WHERE exactly do I have to do it?
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

remo wrote: 09 Mar 2025, 08:14 But WHERE exactly do I have to do it?
You do what you usually do, except you hold down the SHIFT key when you do so.


:idea: SHIFT-CLICK <database> means hold the SHIFT key down when you click on TheMovieDB in this menu:

Screenshot
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

Got it now!

- no xattr information stored in my case, nothing and nowhere
- filling the left list and shift-clicking TheMovieDB will prompt the movie selection dialog for each title
(still a lot of work for 5k files, but I'll give it a try)
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

Pic 1:
Can you explain me please what's happening when hitting CANCEL or OK ?
For some movies the movie selection dialog appears after that, for some not.

Edit: how to post a screenshot?

Edit:
Screenshot
https://imgur.com/a/EYPW5qd
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

OK means that FileBot will use the query that you have entered. FileBot already knows which movie(s) it could be - hence the pre-filled movie name - but gives you a chance to run your own search instead here. If there are 0 or 1 search results, FileBot will continue with that. If there are 2 or more search results, then FileBot will ask you to select one.

Cancel means FileBot will cancel your search query and continue as usual. Since FileBot already knows which movie(s) it could be, FileBot will then continue with multiple possible options. If there are 0 or 1 viable options, then there is no choice and FileBot will not ask you to make a choice. If there are 2 or more viable options, FileBot may ask you to select one.


tl;dr FileBot will not ask you to make a choice if there is no choice to be made, i.e. you will never see a selection dialog with 0 choices or with 1 choice only.
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

So in my case it is the best Option to not touch the text field‘s content and click always OK, so that FB will prompt when there is no uinique match?
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

remo wrote: 09 Mar 2025, 20:36 So in my case it is the best Option to not touch the text field‘s content and click always OK, so that FB will prompt when there is no uinique match?
Yes, if the pre-filled text is the movie name (or at least a reasonable search query) then you can just press ENTER to confirm the custom search query. If there is only 1 search result in response to your search query, then FileBot will notably not ask you to select that 1 result from a list of movies that only contains 1 movie.
:idea: Please read the FAQ and How to Request Help.
remo
Posts: 35
Joined: 28 Sep 2019, 19:15

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by remo »

Hello, I need some further assistance please.
What should I do now? How can I correct FB's decision here?
FB didn't ask for selecting the appropriate title...

Screenshot
https://imgur.com/a/r0TADFF
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Match "Coma (2019).mkv" to Coma (2020) and not Coma (2019)

Post by rednoah »

Please do click on Q: How do I fix misidentified files? and read. Make sure to read the first sentence and the second sentence at the very least.

Let me know if something (please be specific) is still unclear after reading the manual.



EDIT:

The mismatch in the screenshot above is easily explained by the Movie ID. If you force manual input and enter a number like "300" then FileBot will interpet your manual number input as Movie ID. You'd have to enter "300 2007" (anything that's not just a single number will do) to do a normal search query.


EDIT 2:

Future releases will make sure not to pre-fill number-only movie names / series names that would incorrectly be interpreted as IDs in the next step.
:idea: Please read the FAQ and How to Request Help.
Post Reply