Page 1 of 1

Create subfolders if neeeded

Posted: 10 Apr 2013, 08:19
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?

Re: Create subfolders if neeeded

Posted: 10 Apr 2013, 08:57
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

Re: Create subfolders if neeeded

Posted: 10 Apr 2013, 10:03
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?

Re: Create subfolders if neeeded

Posted: 10 Apr 2013, 10:20
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.