Page 1 of 1

Feature Reqest: Rename without forced online lookup

Posted: 02 Mar 2014, 18:24
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!

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

Posted: 03 Mar 2014, 02:21
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.

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

Posted: 03 Mar 2014, 13:12
by mega
Hi rednoah,

I thought so and prefixed the title with "Feature Request".

Re: Feature Reqest: Rename without forced online lookup

Posted: 03 Mar 2014, 14:05
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}'''))
}