Movie file creation date error with very old movies

Any questions? Need some help?
Post Reply
brunosso
Posts: 10
Joined: 25 Oct 2014, 09:48

Movie file creation date error with very old movies

Post by brunosso » 02 Aug 2019, 09:29

I'm using filebot 4.8.5 and i have set in the enviroment variable the option to apply creation date of the renamed file same as the airdate of the episode/movie..

I try to rename this movie Alice in wonderland (https://www.themoviedb.org/movie/12092- ... wonderland) but the creation date is not the correct date (6 december 1951) but is 22 january 2017 (i don't know why!)

It's a bug or there is a way to fix this?

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

Re: Movie file creation date error with very old movies

Post by rednoah » 02 Aug 2019, 09:57

Please run filebot -script fn:sysinfo and post the output.


:idea: If you're using Linux, then there is no such thing as a "creation date" since Linux only supports "last modified", so if FileBot tries to set "creation date" it's gonna do either nothing, or change last modified date.


:idea: It would be plausible to assume, that some operating systems / file systems do not allow file creation dates before 1970 for technical reasons. Can you confirm that it works for recent movies, but not ancient movies?
:idea: Please read the FAQ and How to Request Help.

brunosso
Posts: 10
Joined: 25 Oct 2014, 09:48

Re: Movie file creation date error with very old movies

Post by brunosso » 02 Aug 2019, 10:30

rednoah wrote:
02 Aug 2019, 09:57
Please run filebot -script fn:sysinfo and post the output.

Code: Select all

FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: 18.12
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 11.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 38 MB Used Memory
OS: Windows 7 (amd64)
Package: MSI
License: FileBot License PX8757044 (Valid-Until: 2069-07-26)
Done ?(?????)?
rednoah wrote:
02 Aug 2019, 09:57
:idea: If you're using Linux, then there is no such thing as a "creation date" since Linux only supports "last modified", so if FileBot tries to set "creation date" it's gonna do either nothing, or change last modified date.
I'm using Windows 7 Professional
rednoah wrote:
02 Aug 2019, 09:57
:idea: It would be plausible to assume, that some operating systems / file systems do not allow file creation dates before 1970 for technical reasons. Can you confirm that it works for recent movies, but not ancient movies?
Works for recent movies, but not ancient movies

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

Re: Movie file creation date error with very old movies

Post by rednoah » 02 Aug 2019, 11:28

brunosso wrote:
02 Aug 2019, 10:30
Works for recent movies, but not ancient movies
Well, since FileBot is running the same code for both, I can only assume there's some kind of sanity check on the lower levels, maybe JRE, maybe OS, maybe file system.

:?: Are you using a FAT or a NTFS file system? Does this file system support pre-1970 creation dates?

:?: Have you tried using cmd or PowerShell to set a 1950 creation date on some file to see if that works?
:idea: Please read the FAQ and How to Request Help.

brunosso
Posts: 10
Joined: 25 Oct 2014, 09:48

Re: Movie file creation date error with very old movies

Post by brunosso » 02 Aug 2019, 12:48

rednoah wrote:
02 Aug 2019, 11:28
Well, since FileBot is running the same code for both, I can only assume there's some kind of sanity check on the lower levels, maybe JRE, maybe OS, maybe file system.

:?: Are you using a FAT or a NTFS file system? Does this file system support pre-1970 creation dates?

:?: Have you tried using cmd or PowerShell to set a 1950 creation date on some file to see if that works?
1. Use a NTFS filesystem and teoretically it supports date from 1601...
2. I use this code to change manually the creation date (i have the locale in Italian):

Code: Select all

$(Get-Item test.txt).lastaccesstime=$(Get-Date "14/12/1942 00:00")
and also with a software Bulkfilechanger. The creation date is applied correctly but not showed in Explorer
Image

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

Re: Movie file creation date error with very old movies

Post by rednoah » 02 Aug 2019, 13:06

I guess you could just tag them after the fact:

Code: Select all

filebot -mediainfo -r /path/to/files -exec echo {d} {f}
:idea: This one will just echo release date and file path. You can modify the -exec option to run your own commands.
:idea: Please read the FAQ and How to Request Help.

brunosso
Posts: 10
Joined: 25 Oct 2014, 09:48

Re: Movie file creation date error with very old movies

Post by brunosso » 02 Aug 2019, 15:31

rednoah wrote:
02 Aug 2019, 13:06

Code: Select all

filebot -mediainfo -r /path/to/files -exec echo {d} {f}
unfortunately the exec command is only for Unix systems

EDIT

The correct syntax (for Windows OS) is

Code: Select all

filebot -mediainfo -r /path/to/files -exec cmd.exe /c echo {d} {f}

kim
Power User
Posts: 827
Joined: 15 May 2014, 16:17

Re: Movie file creation date error with very old movies

Post by kim » 02 Aug 2019, 16:01

You are using this, yes ?

Code: Select all

-DuseCreationDate=true
You can test if set with format

Code: Select all

{System.getProperty("useCreationDate")}

Post Reply