I'm a big fan of kodi listing via date added, but it seems to rely on the fimestamp on the file which unrar seems to preserve. All the files extracted by unrar are run through filebot after using the AMC script, but I can't see any options to set the timestamp to the current time so I'm guessing it doesn't exist.
FileBot does not modify timestamps. Are you sure that unrar preserves timestamps?
EDIT:
You can probably set unrar to not preserve timestamps. If you're using the amc script you can use --def exec to modify the timestamps after processing.
Thanks for the reply Pretty sure its unrar, as one extracted with a funky filename that filebot failed on and it has a 2015 modified/creation date. I can't find any switches for unrar that change its timestamp behaviour which I why I was hoping filebot could do this for me after extracting
Didn't notice the exec option, was too busy looking for time related ones! A simple touch '{file}' seems to of done the trick.
Well, the Set creation date post-processing action will set the time stamp, but to the episode airdate / movie release date, as opposed to the current date time:
Adding a new post-processing action would take like 5 minutes, but I'm not aware of any particular use case that would be generally useful. Hasn't really come up. I'm usually focused on making sure that the last modified date isn't accidentally updated by FileBot doing this or that. That's usually a problem.
EDIT:
FileBot r9006 adds --apply touch to update the time stamps for all the processed files.
<dateadded>1</dateadded> <!-- 0 results in using the current datetime when adding a video;
1 (default) results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid;
2 results in using the newer datetime of the file's mtime and ctime -->
xadox wrote: ↑21 Dec 2021, 13:59
Hmm... it it possible to "--apply touch" in GUI Mode with presets?
Sure. Most of the post-processing features are supported in the GUI. What's your use case though?
I would like to set the FileDateStamp of series and movies to the current date and time after renaming.
So that these files are displayed in Kodi in the last added category.
I've added --apply touch because the use case does make sense, especially the one where time stamps restored from archives make newly added files years old. I'd be good to guarantee a recent Last-Modified date so that you can find newly added files via find /path/to/media -mtime -1 for subsequent automation tasks.
However, IMHO the "I want Kodi to show me the recently added files" use case is probably best served by adjusting the corresponding Kodi settings.