Script to rename then move to a folder structure?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Omegapsy
Posts: 4
Joined: 13 Jun 2015, 17:14

Script to rename then move to a folder structure?

Post by Omegapsy »

First off I am sorry if this is the wrong place to ask this.

I am trying to setup an automation to rename files in a certin folder then file them away in a specific folder structure. I will explain better below.


I have files located here: E:\New Movies\

So I would use the augments -rename -r "E:/New Movies/" --db TheMovieDB

I want to be able to automate it to move the files into their respective folder in this example: E:\Video\Movies\

I want to do a similer thing with TV shows as well to a folder structure like this: E:\Video\TV\(Series Name)\Season (Season Number)\


Can this be done?



EDIT: I figured out how to do it with Movies, but still working on TV shows. Any input is appreciated.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script to rename then move to a folder structure?

Post by rednoah »

I'm pretty sure this is answered in FAQ #1 => viewtopic.php?f=3&t=7

Solution: Use --format.
:idea: Please read the FAQ and How to Request Help.
Omegapsy
Posts: 4
Joined: 13 Jun 2015, 17:14

Re: Script to rename then move to a folder structure?

Post by Omegapsy »

Thank You. For some reason searching I could not find that.
Omegapsy
Posts: 4
Joined: 13 Jun 2015, 17:14

Re: Script to rename then move to a folder structure?

Post by Omegapsy »

Alright so I have setup what should be right, but can't seem to get it to actually use the augments right. I am not sure what I am doing wrong.

Code: Select all

filebot -rename -r "C:/Users/Omegapsy/Desktop/New folder" --db TheTVDB --output "C:/Users/Omegapsy/Desktop/TVTEST/{n}/Season {s}"
This is just for my test.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script to rename then move to a folder structure?

Post by rednoah »

I wrote:Solution: Use --format
And at the very least, have a look at the examples => http://www.filebot.net/naming.html

e.g.

Code: Select all

--output "/path/to/media" --format "TV Shows/{n}/Season {s}/{sxe} - {t}"
:idea: Please read the FAQ and How to Request Help.
Omegapsy
Posts: 4
Joined: 13 Jun 2015, 17:14

Re: Script to rename then move to a folder structure?

Post by Omegapsy »

Sorry, had a momentary lapse or logic there. All figured out now, Thanks for your help!!!
Post Reply