AMC auto-extract movie/TV file but auto-rename to foldername

Any questions? Need some help?
Post Reply
FTW
Posts: 12
Joined: 28 Jan 2022, 09:47

AMC auto-extract movie/TV file but auto-rename to foldername

Post by FTW »

Hi, is it possible to ask AMC when it auto-extract to rename automatically file .mkv/.avi/mp4/etc with the folder name?

ex: Folder name: 8.Mile.DVDRip.XViD-team
file : 8m-team.avi
filepath: /8.Mile.DVDRip.XViD-team/8m-team.avi

when extract -> to rename the file at same time to: 8.Mile.DVDRip.XViD-team.avi (instead of keeping 8m-team.avi)
new filepath: /8.Mile.DVDRip.XViD-team/8.Mile.DVDRip.XViD-team.avi

** before the AMC do all his others works, I think that will help the AMC and filebot matching find the correct movies/series easier

Thanks
User avatar
rednoah
The Source
Posts: 21332
Joined: 16 Nov 2011, 08:59

Re: AMC auto-extract movie/TV file but auto-rename to foldername

Post by rednoah »

:idea: If you want to not identify and rename movies / episode then the amc script is not suitable for your use case.


:arrow: If you want to just extract archives and rename files based on locally available information, then you'll want to have a custom script that first extracts archives (with filebot -extract or other tools) and and then renames files based on their parent folder (with filebot --db file or other tools).


:idea: The Plain File Mode examples already almost covers your use case, except the other way around (i.e. file to folder) but what you want is just a matter of changing the format:

Code: Select all

filebot -rename /path/to/files --db file --format "{ folder.name }"


EDIT:

:!: Doing any of this before calling the amc script with the goal of making the amc script work better generally has no effect. FileBot will consider the entire file path, and not just the file name, when identifying files. If you have encountered a mismatch, please paste the log so that we can investigate why the mismatch occurred.
:idea: Please read the FAQ and How to Request Help.
Post Reply