Get name without renaming files

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
bjd223
Posts: 8
Joined: 18 Oct 2017, 14:41

Get name without renaming files

Post by bjd223 »

Hello,

Not sure if this is the right section for this.

A little back story. I use filebot to rename TV shows automatically, and manually rename movies. Currently I send a weekly digest to users of my Plex server with what has been added this week. This is done in a PowerShell script.

If it takes me longer then a week to rename a movie file, the digest contains the torrent name instead of the readable filebot name.

Is there a way to pass filebot a filename and have it return the matched name, without actually doing the rename on the file? I looked through the documentation but didn't see a whatif type parameter.
User avatar
rednoah
The Source
Posts: 23959
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Get name without renaming files

Post by rednoah »

You can't get the future name. But you can get the past name.

e.g. print recently added files:

Code: Select all

filebot -mediainfo -r /path/to/files --file-filter "age < 7" --format "• {historic.fn} was added as {plex}"
:idea: Please read the FAQ and How to Request Help.
bjd223
Posts: 8
Joined: 18 Oct 2017, 14:41

Re: Get name without renaming files

Post by bjd223 »

Ok thanks. It would be cool if FB did this so I don't need to clean filenames up with regex to make them presentable.

Even better would be if it could return an array of data, or JSON or whatever which includes the uid from the service matching it. So for instance an IMDB matched movie would also return the IMDB id number.

That way my script could link the cover art and rating easily.
User avatar
rednoah
The Source
Posts: 23959
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Get name without renaming files

Post by rednoah »

Using {json} should do the job:

Code: Select all

filebot -mediainfo -r /path/to/files --file-filter "age < 7" --format "{json}"
:idea: Please read the FAQ and How to Request Help.
Post Reply