Create subfolders if neeeded

Any questions? Need some help?
Post Reply
andreyy
Posts: 19
Joined: 09 Apr 2013, 15:42

Create subfolders if neeeded

Post by andreyy »

My video collection consist of MKVs, AVIs, Bluray rips (with its own folder structure), Blueray ISO.
Some of the video files come without subfolder, some of them have it. It depends on torrent it came from.
This collection organized by some way, so there is some additional folders that have the files and folders mentioned above.
I will be using filebot CLI version. And want it to make additional folder structure (using symlink) that will contains flat representation of movies. Each movie must come with its own folder.

Example of source folder structure:
/torrent/2010s/Movie1(2012).mkv
/torrent/2010s/THE_MOVIE2/the-move.mkv
/torrent/1980s/movie3/<BLUERAY CONTENT>

I would like to have to have structure like this:
/movies/Movie1(2012)/movie(2012).mkv
/movies/The_Movie2(2010)/the-move.mkv
/movies/Movie3(1987)/<BLUERAY CONTENT>

Do I have to use scripts? Is there examples?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Create subfolders if neeeded

Post by rednoah »

Seems like simple movie-mode input & output:

Try this:

Code: Select all

filebot -rename -r /torrent --db themoviedb --output /movies --format "{n} ({y})/{n} ({y}){' CD'+pi}" -non-strict --action test
:idea: Please read the FAQ and How to Request Help.
andreyy
Posts: 19
Joined: 09 Apr 2013, 15:42

Re: Create subfolders if neeeded

Post by andreyy »

Thanks a lot for your answer! It looks like what I really need!

But I have one thing to mention. This method tries to rename the content of bluray folder:
[TEST] Rename [/torrent/video/1940s/ROPE_G51/BDMV/STREAM/00069.m2ts] to [/movies/Rope (1948)/Rope (1948) CD41.m2ts]
[TEST] Rename [/torrent/video/1940s/ROPE_G51/BDMV/STREAM/00106.m2ts] to [/movies/Rope (1948)/Rope (1948) CD42.m2ts]

Is it possible to leave the internal content untouched?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Create subfolders if neeeded

Post by rednoah »

Yeah, the -r is doing that. You can use the amc script, or the GUI, theyll handle BDMV folders properly.

Also you can do your own shell script and call -rename on each movie folder, that'll work as long as you don't use -r to make it unfold everything.
:idea: Please read the FAQ and How to Request Help.
Post Reply