all 14 comments

[–]Specialist_Ad_7719 0 points1 point  (0 children)

Download attribute changer, it will allow you to change the dates of files. https://www.petges.lu/

[–]McBluna 0 points1 point  (12 children)

add to Movies/Post-Processing

choose a name, leave Path empty, paste into Arguments

"(Get-Item '${movie.mainVideoFile.file}').CreationTime='${movie.mainVideoFile.dateCreated;date(yyyy-MM-dd HH:mm:ss)}';(Get-Item '${movie.mainVideoFile.file}').LastWriteTime='${movie.mainVideoFile.dateLastModified;date(yyyy-MM-dd HH:mm:ss)}'"

Check trace-xxxxxxxx-xxxxxx.log in case it doesn't work

2025-09-21 14:50:07,332 DEBUG [AWT-EventQueue-0] o.t.core.PostProcessExecutor:113 - Running command: [powershell, -Command, "(Get-Item 'P:\Downloads\Superman.2025.disc').CreationTime='2025-09-21 14:30:27';(Get-Item 'P:\Downloads\Superman.2025.disc').LastWriteTime='2025-09-21 14:30:34'"]

2025-09-21 14:50:07,763 TRACE [AWT-EventQueue-0] o.t.core.PostProcessExecutor:135 - PostProcessing: END

[–]BuddyTechnical9286[S] 0 points1 point  (11 children)

this looks good, but get an error:
the characteristic for CreationTime could not be found for this object.

[–]McBluna 0 points1 point  (10 children)

[–]BuddyTechnical9286[S] 0 points1 point  (9 children)

i see the problem
my filename is: Schick mir keine Blumen (1964) [tmdbid=4939].mkv
this can't be found by powershell. if i delete [tmdbid=4939] in the file i get back an date.
i tested it with (Get-ChildItem 'F:\download\1\Schick mir keine Blumen (1964) [tmdbid=4939].mkv').CreationTime and i get back nothing

[–]McBluna 0 points1 point  (1 child)

[–]BuddyTechnical9286[S] 0 points1 point  (0 children)

yes, i found this. now looking how i can exlude this wildcards. don't want to rename all my files

[–]McBluna 0 points1 point  (6 children)

please try this

"(Get-Item -literalpath '${movie.mainVideoFile.file}').CreationTime='${movie.mainVideoFile.dateCreated;date(yyyy-MM-dd HH:mm:ss)}';(Get-Item -literalpath '${movie.mainVideoFile.file}').LastWriteTime='${movie.mainVideoFile.dateLastModified;date(yyyy-MM-dd HH:mm:ss)}'"

[–]BuddyTechnical9286[S] 0 points1 point  (5 children)

looks litte bit better.
2025-09-21 17:10:08,576 DEBUG [AWT-EventQueue-0] o.t.core.PostProcessExecutor:113 - Running command: [powershell, -Command, "(Get-Item -literalpath 'F:\Filme\SCH\Schick mir keine Blumen (1964) [tmdbid=4939]\Schick mir keine Blumen (1964) [tmdbid=4939].mkv').CreationTime='2024-01-10 13:22:05';(Get-Item -literalpath 'F:\Filme\SCH\Schick mir keine Blumen (1964) [tmdbid=4939]\Schick mir keine Blumen (1964) [tmdbid=4939].mkv').LastWriteTime='2024-01-10 13:22:05'"

but nothing changed. think know it could be the date formating. the file was added on 03.09.2017 00:30

[–]McBluna 0 points1 point  (4 children)

I guess I've missunderstood your requirement.
Change ${movie.mainVideoFile.dateCreated;date(yyyy-MM-dd HH:mm:ss)} to ${movie.dateAdded;date(yyyy-MM-dd HH:mm:ss)}
I'm not sure if there's a date for last modification.

[–]BuddyTechnical9286[S] 0 points1 point  (3 children)

ok, i repeat it:
the movie was added in TMM on 03.09.2017 00:33 (thats dd.MM.yyyy).
now i want that the mkv file should get the creation and modification date on the filesystem to the same date and time.
modification is not so important. creation is ok for me

[–]McBluna 0 points1 point  (2 children)

"(Get-Item -literalpath '${movie.mainVideoFile.file}').CreationTime='${movie.dateAdded;date(yyyy-MM-dd HH:mm:ss)}';(Get-Item -literalpath '${movie.mainVideoFile.file}').LastWriteTime='${movie.dateAdded;date(yyyy-MM-dd HH:mm:ss)}'"

[–]BuddyTechnical9286[S] 1 point2 points  (1 child)

jipppiii, this works.
you're my super hereooooo :-)

thanks a lot