Page 1 of 1

How does Filebot know the Source?

Posted: 21 Feb 2018, 11:56
by Ibanezmike
Hey guys, just curious as to how Filebot knows what source a given file comes from? Say I have a copy of a movie file that was from a BluRay, and another movie file that came off a DVD, but the file names were just "Movie 1" and "Movie 2". How does Filebot know to mark one of them DVD and the other BluRay?

Re: How does Filebot know the Source?

Posted: 21 Feb 2018, 16:53
by rednoah
It can't. The {source} binding checks the filename for known patterns. If you can't tell the source based on the filename, then neither can FileBot.

Re: How does Filebot know the Source?

Posted: 21 Feb 2018, 22:56
by Ibanezmike
https://imgur.com/mC7CU3z

I am able to drop something like this into Filebot and it somehow knows what the source is?

Re: How does Filebot know the Source?

Posted: 22 Feb 2018, 02:27
by rednoah
I see. You've probably renamed the file before and so FileBot remembers the original filename.

The original filename / metadata is stored as xattr so it can be accessed later on:
viewtopic.php?f=3&t=324