Hey!
I'm an absolute scrub when it comes to this. I used to have it as simple as I could, by having FB just Extract and copy from completed downloads to a
temporary folder. Where I myself just sorted the files by renaming using FB GUI and copying manually to the correct path. So I've tried a while now
to use FB the way it should be used. And I gotta say, I honestly feel retarded. I read your FAQ, FAQ for noobs, Script tutorials etc... and I think I'm closer to
throw my server out the window than get this to work properly.
So I'll just shamefully ask if anyone can make the command line I'm failing at making myself.
What I want FB to do with movies:
-Extract to / Copy to NEW folder {n.colon(' - ')} ({y}) with filename: {n.colon(' - ')} ({y}){' [CD'+pi+']'} [{vf}] inside movie dir."Y:\Filma"
So, if rar; Extract to new folder inside movie dir, and rename filename. Otherwise do the same, but copy movie rather than extract.
Now I tend to DL nordic packs, so I get several subtitles with a DL. So if possible, copy the subs, rename to filename but keep -no - se or whatever
the end lable is.
For TV shows;
-Extract / Copy to "Y:\TV Shows\SHOW NAME FOLDER"
I use sonarr to take care of naming for TV shows, I just want the episodes to get moved to correct location.
Dir for completed DL: Y:\Downloads
Dir for Movies: Y:\Filma
Dir for TV: Y:\TV Shows
OS: Windows 10
DL client: uTorrent
Java: x64
Closest I got before scratching everything was extract a movie, and put it in a folder with original title name, and add another folder with same name inside of it. And there the unpacked file would be. Then it would copy the extracted file and rename to correct name to correct movie folder, but as a single file, no new folder. Man I blow at this.... Any help is appreciated!
Help with automation
Re: Help with automation
Just use the amc script as is and don't do any custom coding.
Customizations are a task for another day once you've got the basics working. Although you can customize a lot, it's best to just stick to the defaults for the sake of simplicity.
Customizations are a task for another day once you've got the basics working. Although you can customize a lot, it's best to just stick to the defaults for the sake of simplicity.

-
- Posts: 5
- Joined: 08 Nov 2016, 01:17
Re: Help with automation
I wasn't aware that the AMC script was.... that complex. I honestly thought it was all just the ONE cmd line I put in uTorrent that did everything..
Leaving it alone would put me to back to how I used to have it.
It'll extract rars, copy the extracted file to my output. And if it's TV shows sonarr would see the files and take care of it.
The problem I have with this is that I'd have to do a lot cleanups all the time, and it's quite tedious. For movies I guess what I want might be a bit more than just a few
commands so suppose I'll leave do these manually. But for TV shows it would be great if I were able to let that do its thing uninterrupted.
I've moved my library so that any episodes that is being extracted or copied will end up to its correct place.
When FB is extracting torrents, I assume it's within the AMC script itself it tells the program what to name the new folder/filename?
I tried to manipulate it by --def movieFormat="Y:\Media\Movies {n.colon(' - ')} ({y}){' [CD'+pi+']'} [{vf}]" but then I get the correct named file in \Movies folder, without
any subfolder with title. Is there a way for me to specify that the file should be added to a new folder with custom name ? If I don't use the --def movieFormat it extracts to \output\newFolder (with folder name I would have to edit again)
If ^ is outside of the simple command line, then is there a way (again, by not altering the AMC script itself) to make it cleanup by itself?
if I DL Avatar, it'll extract to filename inside itself. So I have Avartar.1080p-scrublords\avartar.1080p-scrublords\avartar.1080p-scrublords.mkv
The AMC script proceeds to copy Avartar.1080p-scrublords\avartar.1080p-scrublords\avartar.1080p-scrublords.mkv to \output
Then I use the FB GUI to rename folder / filename and move it to its correct path. Navigate back to DL folder to delete the extracted files.
I suspect if I use --action move then any nonrar DL's would simply be moved and there would not be anything left to seed right?
Again, sorry for being such a noob at this.
Leaving it alone would put me to back to how I used to have it.
It'll extract rars, copy the extracted file to my output. And if it's TV shows sonarr would see the files and take care of it.
The problem I have with this is that I'd have to do a lot cleanups all the time, and it's quite tedious. For movies I guess what I want might be a bit more than just a few
commands so suppose I'll leave do these manually. But for TV shows it would be great if I were able to let that do its thing uninterrupted.
I've moved my library so that any episodes that is being extracted or copied will end up to its correct place.
When FB is extracting torrents, I assume it's within the AMC script itself it tells the program what to name the new folder/filename?
I tried to manipulate it by --def movieFormat="Y:\Media\Movies {n.colon(' - ')} ({y}){' [CD'+pi+']'} [{vf}]" but then I get the correct named file in \Movies folder, without
any subfolder with title. Is there a way for me to specify that the file should be added to a new folder with custom name ? If I don't use the --def movieFormat it extracts to \output\newFolder (with folder name I would have to edit again)
If ^ is outside of the simple command line, then is there a way (again, by not altering the AMC script itself) to make it cleanup by itself?
if I DL Avatar, it'll extract to filename inside itself. So I have Avartar.1080p-scrublords\avartar.1080p-scrublords\avartar.1080p-scrublords.mkv
The AMC script proceeds to copy Avartar.1080p-scrublords\avartar.1080p-scrublords\avartar.1080p-scrublords.mkv to \output
Then I use the FB GUI to rename folder / filename and move it to its correct path. Navigate back to DL folder to delete the extracted files.
I suspect if I use --action move then any nonrar DL's would simply be moved and there would not be anything left to seed right?
Again, sorry for being such a noob at this.
Re: Help with automation
1.
2.
If your format does not specify a folder then there won't be a folder. Use the GUI Format Editor and learn how to use the format before you use custom formats. It works just fine by default, so if your custom format doesn't work, then you probably need to fix your custom format.
If you think that the format for the folder name is somehow different from the file name then you have clearly not yet fully grasped what the format does. The format defines the file path fully and completely, including file name, folder name, name of the parent folder of the folder, etc.
3.
Open the manual. Search for deleteAfterExtract and read what it says. While you're there, read everything else because it might be useful depending on what you're trying to do.
4.
So you're saying you use FileBot GUI to process files that have just been processed by the amc script? This makes no sense whatsoever.
Yes, but it can be a pretty long command-line call if you override all of the default options.ThisIsMyName wrote:I wasn't aware that the AMC script was.... that complex. I honestly thought it was all just the ONE cmd line I put in uTorrent that did everything...
2.
If your format does not specify a folder then there won't be a folder. Use the GUI Format Editor and learn how to use the format before you use custom formats. It works just fine by default, so if your custom format doesn't work, then you probably need to fix your custom format.

If you think that the format for the folder name is somehow different from the file name then you have clearly not yet fully grasped what the format does. The format defines the file path fully and completely, including file name, folder name, name of the parent folder of the folder, etc.
3.
Open the manual. Search for deleteAfterExtract and read what it says. While you're there, read everything else because it might be useful depending on what you're trying to do.
4.
So you're saying you use FileBot GUI to process files that have just been processed by the amc script? This makes no sense whatsoever.
-
- Posts: 5
- Joined: 08 Nov 2016, 01:17
Re: Help with automation
2. The folders were always the same name as the filename. I just want folder name and filename to be different.
3. Probably have to read it more than ones!
4. Yupp. This is exactly because of the issue I'm running into at your 2nd point. The problem with correct filename but no folder, or folder with wrong name (Wrong in the sense of format. torrent name rather than custom one) So I end up letting FileBot cmd do its job, then use the gui to simply fix the names to my liking.
This is pretty much what it all comes down to. I kinda don't want to use FileBot cmd to extract and GUI to rename when I know the cmd should be able to handle it all.
The limitations are with me, because this is like a foreign language and I go full retard trying to figure it out.
I'll see what cmd line I might come up with :/
3. Probably have to read it more than ones!
4. Yupp. This is exactly because of the issue I'm running into at your 2nd point. The problem with correct filename but no folder, or folder with wrong name (Wrong in the sense of format. torrent name rather than custom one) So I end up letting FileBot cmd do its job, then use the gui to simply fix the names to my liking.
This is pretty much what it all comes down to. I kinda don't want to use FileBot cmd to extract and GUI to rename when I know the cmd should be able to handle it all.
The limitations are with me, because this is like a foreign language and I go full retard trying to figure it out.
I'll see what cmd line I might come up with :/
Re: Help with automation
2.
Yes, that's what the format does by default if you're processing multi-part movies (e.g. Avatar (2009)/Avatar (2009) CD1.mp4 <= different folder/file names) so there's nothing fancy about this.
4.
If you have trouble with the format, you should make a separate thread in the naming scheme forum and explain what you want and what you have tried so far (!) and what's stopping you from making it work the way you want.
Please read the related docs and have a look at the examples: http://www.filebot.net/naming.html
Yes, that's what the format does by default if you're processing multi-part movies (e.g. Avatar (2009)/Avatar (2009) CD1.mp4 <= different folder/file names) so there's nothing fancy about this.
4.
If you have trouble with the format, you should make a separate thread in the naming scheme forum and explain what you want and what you have tried so far (!) and what's stopping you from making it work the way you want.
Please read the related docs and have a look at the examples: http://www.filebot.net/naming.html
-
- Posts: 5
- Joined: 08 Nov 2016, 01:17
Re: Help with automation
Weee, think I've got it .... working! Kindof...
I had to change some paths of my media, and try / fail a lot. I had no idea that adding \ between formats would define the code as foldername\moviename when I tried
to get the damn naming the way I'd like it to be. So the naming is now perfect.
I gave up on figuring out how to extract the subtitles, or copy existing subs from folder and just used filebot to add new ones =(
The funny thing is, I'm as clueless about this as I was before I got it working. Pretty much just edited the code bit by bit until it worked. Used deleteAfterExtract and that was defiantly NOT what I meant earlier, had to reDL to seed lol. --def clean=y was perfect though.
I had to change some paths of my media, and try / fail a lot. I had no idea that adding \ between formats would define the code as foldername\moviename when I tried
to get the damn naming the way I'd like it to be. So the naming is now perfect.
I gave up on figuring out how to extract the subtitles, or copy existing subs from folder and just used filebot to add new ones =(
Code: Select all
filebot -script fn:amc --output "Y:\Media" --action copy --conflict skip -non-strict --def excludeList=amc.txt --log-file amc.log --def unsorted=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" --def movieFormat="Y:\Media\Movies\{n.colon(' - ')} ({y})\{n.colon(' - ')} ({y}){' [CD'+pi+']'} [{vf}]" --def clean=y --def subtitles=en,no
Re: Help with automation
That's how the pros do it.ThisIsMyName wrote:Pretty much just edited the code bit by bit until it worked.

That one made me LOL hard!ThisIsMyName wrote:Used deleteAfterExtract and that was defiantly NOT what I meant earlier, had to reDL to seed

Yes, as per documentation, deleteAfterExtract will delete the archive after extract, while clean will means that newly extracted files are considered temporary files and removed with the rest after processing.