Page 1 of 1

Use file date instead of episode/movie date?

Posted: 11 Oct 2016, 00:51
by Crankrune
I'm trying to organize some of my movies based on when I downloaded them. I made sure I had them all loaded as files and not movies, but some of them still matched and used the movies date. I was using the 'd' variable, which seems to load either the movie's date or the file's date. How can I force it use the file's creation/modified date? I'm using the GUI by the way.

Re: Use file date instead of episode/movie date?

Posted: 11 Oct 2016, 02:10
by Crankrune
I've figured it out. I totally wasn't aware of the {media} variable. Here's how to do it.

Code: Select all

{media.File_Modified_Date} = UTC 2016-09-15 11:30:41.242
{media.File_Modified_Date_Local} = 2016-09-15 11:30:41.242

Re: Use file date instead of episode/movie date?

Posted: 11 Oct 2016, 05:15
by rednoah
{d} works differently for Movie/Episode/File objects.

If you use F2 to fill New Names then it'll use xattr metadata if possible to restore Movie/Episode object from last time, or just use the File object is there is no xattr metadata:
viewtopic.php?f=3&t=2072

If you make a Generic File Preset then it'll always use the File object:
viewtopic.php?f=3&t=3228

Re: Use file date instead of episode/movie date?

Posted: 11 Oct 2016, 18:53
by Crankrune
Thanks for that. Is there any way to prevent FileBot from changing the modified date on a file when hardlinking? I hardlinked several of the movies and it changed there modified date, which is kind of annoying since I was moving them based on that date.

Re: Use file date instead of episode/movie date?

Posted: 11 Oct 2016, 19:20
by rednoah
FileBot does not change the Last-Modified date, but the OS might, depending on the OS and what exactly you're doing.