Folder.name don’t works by Folder renaming

Any questions? Need some help?
Post Reply
RubberX
Posts: 3
Joined: 29 Nov 2015, 00:14

Folder.name don’t works by Folder renaming

Post by RubberX »

Hi,

I tried to rename Movie Folders but the Syntax {folder.name} give me an error from java.

Example:

Folder name original
\Watte hadde dude da\

New name after the use of “TheMovieDB” wath I want
\American Ultra (2015) [Watte hadde dude da]\

My problem is I must rename many Movie Folders but I want have the Original Name in [ ]

I tried the folder to rename with the syntax
../{n} ({y}) {[folder.name]}/{n} ({y}){' - CD'+pi}

but here was always a new folder be created and the old Files moved in.
But if I do this with more Folders Filebot does nothing.

That's why I've tried the other way and wanted to rename only the folders.

Image
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Folder.name don’t works by Folder renaming

Post by rednoah »

What value do you expect? Where do you exect that value to come from?

If you want to test file bindings you will need to set a sample file first.
:idea: Please read the FAQ and How to Request Help.
RubberX
Posts: 3
Joined: 29 Nov 2015, 00:14

Re: Folder.name don’t works by Folder renaming

Post by RubberX »

Ok, I try to use a real example

Folder
L:\Movies\ 5.Centimeters.Per.Second.German.2007.ANiME.AC3.DVDRiP.XviD-STARS
supposed to
L:\Movies\ 5 Centimeters Per Second (2007) [5.Centimeters.Per.Second.German.2007.ANiME.AC3.DVDRiP.XviD-STARS]

but I've already found my mistake

The Syntax must be “{n} ({y}) {[fn]}”
{folder.name} brings only a value of 1

But thanks to you
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Folder.name don’t works by Folder renaming

Post by rednoah »

1.
Just ignore the warning. If there is a folder, it'll work. If you don't set a sample file for testing, then there won't be a folder, and it won't work. Same applies to {file} and any other file based binding.

2.
When renaming folders as if they're files, then {folder} will be the folders folder, and {file} will be the folder.

3.
Have you tried setting the sample file to L:\Movies\ 5.Centimeters.Per.Second.German.2007.ANiME.AC3.DVDRiP.XviD-STARS then?
Image
:idea: Please read the FAQ and How to Request Help.
RubberX
Posts: 3
Joined: 29 Nov 2015, 00:14

Re: Folder.name don’t works by Folder renaming

Post by RubberX »

1. On my first attempt there was an example that pointed to a file.

2. Correctly that was my second mistake

3. Yes that's what I've done and then it worked. But the parent folder had the name 1. That's why I get the 1 as the value.
Post Reply