Auto Rename and Move each file to each folder

Support for Windows users
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Auto Rename and Move each file to each folder

Post by kim »

maybe:
"/path/to/input"
or
Illegal usage: output folder [B:\Videos\Torrents\Completed] must be separate from input arguments ["/path/to/input"]
Failure (°_°)
BigSteve84
Posts: 25
Joined: 10 Dec 2017, 13:34

Re: Auto Rename and Move each file to each folder

Post by BigSteve84 »

OK what do I need to do to fix it?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Auto Rename and Move each file to each folder

Post by rednoah »

/path/to/input indicates that you need to replace it with the actual path to your input files. You can create a new folder somewhere for testing, and then use that folder as input path.
:idea: Please read the FAQ and How to Request Help.
BigSteve84
Posts: 25
Joined: 10 Dec 2017, 13:34

Re: Auto Rename and Move each file to each folder

Post by BigSteve84 »

I've made the changes and still not working, I've noticed that the first word that comes up in the cmd window is Locking ?
filebot -script fn:amc --output "B:/Videos/Torrents/Completed" --action copy -non-strict "B:/Videos/Torrents/Completed/2" --log-file amc.log --def excludeList=amc.txt --def movieFormat="M:/Movies/{ny}/{fn}" seriesFormat="B:/Videos/TV Shows/{genres =~ /Children/ ? 'Kids Shows' : genres =~ /Animation/ ? 'Our Animated Shows' : genres =~ /Documentary/? 'Documentaries': 'Our Shows'}/ {n}/{'Season' +s}/{n} - {s00e00}" animeFormat="T:/Anime/{n}/{fn}" musicFormat="N:/Music/{n}/{fn}"
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Auto Rename and Move each file to each folder

Post by rednoah »

So you're saying it just says "Locking ..." and nothing else? And the process ends without printing anything else?

:arrow: Since that's fairly impossible, I'd like to see a screenshot of that happening please. So I can see what's really going on. ;)
:idea: Please read the FAQ and How to Request Help.
BigSteve84
Posts: 25
Joined: 10 Dec 2017, 13:34

Re: Auto Rename and Move each file to each folder

Post by BigSteve84 »

I'm trying to mate but the cmd windows close's as fast as it opens, that's why I could literally only make out the word "locking" but there are more words after and its not just saying locking
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Auto Rename and Move each file to each folder

Post by rednoah »

What exactly are you doing or clicking?

Here's how it works:
1. Run CMD
2. Type your command. Hit ENTER to run your command.
3. Look at the output

:arrow: There will be exactly one CMD window and it won't close until you close it.

If you're using a .bat file that you're double clicking, or have other tools such as utorrent run the command, then you're on the wrong path.
:idea: Please read the FAQ and How to Request Help.
BigSteve84
Posts: 25
Joined: 10 Dec 2017, 13:34

Re: Auto Rename and Move each file to each folder

Post by BigSteve84 »

Image hope this is ok
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Auto Rename and Move each file to each folder

Post by rednoah »

Based on the log output, the folder B:/Videos/Torrents/Completed/2 doesn't contain any files.
:idea: Please read the FAQ and How to Request Help.
BigSteve84
Posts: 25
Joined: 10 Dec 2017, 13:34

Re: Auto Rename and Move each file to each folder

Post by BigSteve84 »

OK so my utorrent directories are this, my put new downloads in this is... B:\Videos\Torrents\1st and my move finished downloads is B:\Videos\Torrents\Completed . Now within the script I'm using where do I add these directories ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Auto Rename and Move each file to each folder

Post by rednoah »

e.g. to make it easy, i'll just make a very simply call:

Code: Select all

filebot -script fn:amc B:\Videos\Torrents\1st
This mean you're passing B:\Videos\Torrents\1st as argument and the amc script will use that argument as input folder and process all files within that folder.

All the other options after that are just configuration to make it work the way you want. It's just harder to see once you have dozens of options. Any argument that is not an option will be interpreted as input folder, and there can be many input folders.

This is for manual testing. If you're using utorrent, then the input path will be passed in via the ut_dir / ut_file options.
:idea: Please read the FAQ and How to Request Help.
BigSteve84
Posts: 25
Joined: 10 Dec 2017, 13:34

Re: Auto Rename and Move each file to each folder

Post by BigSteve84 »

Ok so ive finally got them moving to the correct folders but for some strange reason the naming is off. For example instead going into Season 5 its Season5 and instead renaming the show Blue Bloods - S08E01 - Cutting Losses its named Blue Bloods - S08E01 ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Auto Rename and Move each file to each folder

Post by rednoah »

That's exactly what your custom format specifies:

Code: Select all

{'Season' +s}/{n} - {s00e00}
I recommend using the default, which is {plex}, unless otherwise specified by you via the --def seriesFormat option.
:idea: Please read the FAQ and How to Request Help.
BigSteve84
Posts: 25
Joined: 10 Dec 2017, 13:34

Re: Auto Rename and Move each file to each folder

Post by BigSteve84 »

Got it working a dream now, thanks a lot for your help and patience.
Post Reply