AMC - torrent categories as subfolders in output folder
Posted: 01 May 2022, 14:10
Hello!
I've been looking at the AMC script and it seems to do just what I want; well almost.
Truth be told I am not sure how it works by default, and I've been scared to try it out. This question may well have been asked before, but I could not find it using search.
I desire to use the AMC script from a torrent client on download completion.
The script needs to respect the source folder structure and output the renamed folder & file into a clone of that structure with the output directory as root, while leaving a hardlink behind in the source folder to the new, renamed, file.
I am fully clear that the AMC script will leave a hardlink, that much I've managed to find on my own and verify against the script.
My main concern now is which file becomes a hardlink and where the renamed file ends up.
If it does not already behave this way, can someone please share a script that will?
My thanks in advance to anyone who takes time out of their day to help me with this!
I have tried to make an example below showcasing:
New files will be added to this structure after download completion.
Here is where I would like to end up with regards to folder structure:
The file name formats are placeholder - the actual structure as set by AMC will probably be way better and should suit my purposes just fine.
I've been looking at the AMC script and it seems to do just what I want; well almost.
Truth be told I am not sure how it works by default, and I've been scared to try it out. This question may well have been asked before, but I could not find it using search.
I desire to use the AMC script from a torrent client on download completion.
The script needs to respect the source folder structure and output the renamed folder & file into a clone of that structure with the output directory as root, while leaving a hardlink behind in the source folder to the new, renamed, file.
I am fully clear that the AMC script will leave a hardlink, that much I've managed to find on my own and verify against the script.
My main concern now is which file becomes a hardlink and where the renamed file ends up.
If it does not already behave this way, can someone please share a script that will?
My thanks in advance to anyone who takes time out of their day to help me with this!

I have tried to make an example below showcasing:
- Current
- Desired
- Feared
New files will be added to this structure after download completion.
And so on.Torrent client root folder
-Video
--Movies
---On.Aviation.1923.hdRemuxBD.DaCool
----On.Aviation.1923.hdRemuxBD.DaCool.avi
--TV
---Cooking.With.Susan&Martin.S01E11.aTV.AntennaeAltruist
----Cooking.With.Susan&Martin.S01E11.aTV.AntennaeAltruist.avi
--Anime
-Audio
--Music
Here is where I would like to end up with regards to folder structure:
The file name formats are placeholder - the actual structure as set by AMC will probably be way better and should suit my purposes just fine.
What I am afraid will happen:Torrent client root folder
-Video
--Movies
---On.Aviation.1923.hdRemuxBD.DaCool
----On.Aviation.1923.hdRemuxBD.DaCool.avi (Hardlink to: On Aviation 1923.avi)
--TV
---Cooking.With.Susan&Martin.S01E11.aTV.AntennaeAltruist
----Cooking.With.Susan&Martin.S01E11.aTV.AntennaeAltruist.avi (Hardlink to: Cooking With Susan & Martin S01E11.avi)
--Anime
-Audio
--Music
AMC script output folder
-Video
--Movies
---On Aviation 1923
----On Aviation 1923.avi
--TV
---Cooking With Susan & Martin
----Season 01
-----Cooking With Susan & Martin S01E11.avi
--Anime
-Audio
--Music
AMC output directory
-On Aviation 1923
--On Aviation 1923.avi (Hardlink to: On.Aviation.1923.hdRemuxBD.DaCool)
-Cooking With Susan & Martin
--Season 01
---Cooking With Susan & Martin S01E11.avi (Hardlink to: Cooking With Susan & Martin S01E11.avi)