Hi,
I just downloaded the filebot app to use from my MacBook to rename files on my NAS. I try to keep it simple at first, but can’t seem to find a way to rename my files the way I want to. Each file is in a separate folder. The foldername is the exact name I want to use for that file. I’d like to use all information from the foldername in the filename, so no cleaning up. I can only seem to get filebot to create cleaned up names for the movie and episode files.
What settings should I use to accomplish this?
Thanks!
Using foldername to rename file
Re: Using foldername to rename file
You can use Plain File Mode if you just want to rename files to the name of the folder:
viewtopic.php?t=2072
This custom format will generate the New Name based on the folder name for the file at hand:
e.g.
viewtopic.php?t=2072
This custom format will generate the New Name based on the folder name for the file at hand:
Code: Select all
{folder.name}
e.g.
Code: Select all
$ filebot -rename -r /input --file-filter f.video --db file --format "{folder.name}" --action TEST --log INFO
[TEST] from [Avatar/a.mp4] to [Avatar/Avatar.mp4]
⋮
Please read the FAQ and How to Request Help.
Re: Using foldername to rename file
Thanks, that worked
Is there also a way to automatically move the files one folder up?
Now, after the action you described above I have them like this: Tv show name (year)/season 01/tv show name.episode.properties/tv show name.episode.properties.mkv I’d like to automatically move al files of a season one folder up (and delete all empty folders). Is there an easy way for Filebot to do this?
Is there also a way to automatically move the files one folder up?
Now, after the action you described above I have them like this: Tv show name (year)/season 01/tv show name.episode.properties/tv show name.episode.properties.mkv I’d like to automatically move al files of a season one folder up (and delete all empty folders). Is there an easy way for Filebot to do this?
Re: Using foldername to rename file
Yes. Your custom format decides the destination path:
Code: Select all
../{folder.name}
Code: Select all
{folder.dir}/{folder.name}
The GUI does auto-delete left-behind empty folders, but since your moving files within the same file structure, this may or may not work for you. If not, then you can always use the cleaner script yourself.
Please read the FAQ and How to Request Help.
Re: Using foldername to rename file
Thanks, this worked perfectly! Had a little scare when it said deleting folders, but they were empty indeedrednoah wrote: ↑07 May 2021, 09:55Yes. Your custom format decides the destination path:orCode: Select all
../{folder.name}
Code: Select all
{folder.dir}/{folder.name}
The GUI does auto-delete left-behind empty folders, but since your moving files within the same file structure, this may or may not work for you. If not, then you can always use the cleaner script yourself.