[DOCS] Set Last-Modified Date to Episode / Movie Release Date

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[DOCS] Set Last-Modified Date to Episode / Movie Release Date

Post by rednoah »

If you don't use Plex or Kodi, and prefer to manage your media files manually with Finder or Explorer, then changing the Last-Modified date of the file to the movie release date or episode airdate can be quite useful for sorting.


Example: Set Last-Modified date to {d} for all xattr tagged video files:

Newer versions of FileBot support the -exec option for the -rename and -mediainfo commands:

Code: Select all

filebot -mediainfo -r /path/to/files --filter xattr -exec touch -t {d.format(/YYYYMMdd0000/)} {f}
:idea: Please read the FAQ and How to Request Help.
Post Reply