Page 1 of 1

Getting original name into a folder

Posted: 01 Sep 2020, 17:07
by chocorem
Hello,

I wanted to change the rename pattern of my file

Code: Select all

Movies/{any{localize.French.collection/"($y) $localize.Fre.n"}{"($y) $localize.Fre.n"}}/$original
example from a file

Code: Select all

Gone 2012 MULTi VFF 1080p BluRay AC3 x265-Winks.mkv
wanted to get

Code: Select all

(2012) Disparue/Gone 2012 MULTi VFF 1080p BluRay AC3 x265-Winks.mkv
so simply create a directory, with the original filename inside

and I'm always getting

Code: Select all

(2012) Disparue/.mkv
Before it was working with

Code: Select all

Movies/{any{localize.French.collection/"($y) $localize.Fre.n"}{"($y) $localize.Fre.n"}}/{localize.Fre.n}
but I wanted to keep the original filename info

Could you please help me ?

Re: Getting original name into a folder

Posted: 01 Sep 2020, 17:32
by rednoah
{original} refers to the original filename as per xattr metadata stored by FileBot when the file was originally renamed by FileBot for the first time:
https://www.filebot.net/naming.html


:!: {original} is always undefined for files that have never been renamed by FileBot before, or if xattr metadata have been lost. If you want to preserve the current filename, then {fn} is the binding you're looking for.

Re: Getting original name into a folder

Posted: 01 Sep 2020, 17:36
by chocorem
understood, is there another way to get the original file name in the amc process ?

Re: Getting original name into a folder

Posted: 01 Sep 2020, 17:47
by chocorem
I found it mysel with the $fn switch !

thanks