Use file date instead of episode/movie date?

All about user-defined episode / movie / file name format expressions
Post Reply
Crankrune
Posts: 21
Joined: 20 Jul 2016, 11:35

Use file date instead of episode/movie date?

Post 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.
Crankrune
Posts: 21
Joined: 20 Jul 2016, 11:35

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

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

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

Post 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
:idea: Please read the FAQ and How to Request Help.
Crankrune
Posts: 21
Joined: 20 Jul 2016, 11:35

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

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

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

Post by rednoah »

FileBot does not change the Last-Modified date, but the OS might, depending on the OS and what exactly you're doing.
:idea: Please read the FAQ and How to Request Help.
Post Reply