Feature Reqest: Rename without forced online lookup

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
mega
Posts: 2
Joined: 02 Mar 2014, 18:08

Feature Reqest: Rename without forced online lookup

Post by mega »

First of all - great tool, compliment!

Is it possible to rename files without lookups in online DBs, e.g. Movie Format:
{fn} [{resolution}_{media.DurationString.replaceAll(/[\sn]/)}_{vc}_{ac}]
means
"<oldFileName> <LocalFileExtractedMetadata>"

Forcing lookup leads to two problems:
- mess with selecting the right entry (result will be ignored anyway)
- not found entries wont be renamed

Thanks!
Last edited by mega on 03 Mar 2014, 13:13, edited 2 times in total.
User avatar
rednoah
The Source
Posts: 23939
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename without forced "Fetch Episode/Music/Movie"

Post by rednoah »

Not possible.

A hacky work around would be to fetch a random long episode list and drag it over so you have fake episode data to evaluate the format in which you then just don't use any episode bindings.
:idea: Please read the FAQ and How to Request Help.
mega
Posts: 2
Joined: 02 Mar 2014, 18:08

Re: Feature Reqest: Rename without forced "Fetch <DB data>"

Post by mega »

Hi rednoah,

I thought so and prefixed the title with "Feature Request".
User avatar
rednoah
The Source
Posts: 23939
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Feature Reqest: Rename without forced online lookup

Post by rednoah »

Will not implement. Just doesn't fit into the UI at all as it is.

Writing a Groovy script to do the same is a 1-liner. Something like:

Code: Select all

args.getFiles{ it.isVideo() }.each{
   it.renameTo(getMediaInfo(file:it, format:'''{fn} [{resolution}_{media.DurationString.replaceAll(/[\sn]/)}_{vc}_{ac}].{ext}'''))
}
:idea: Please read the FAQ and How to Request Help.
Post Reply