More than one Director

Any questions? Need some help?
Post Reply
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

More than one Director

Post by devster »

I recently tried to process the movie Brave [IMDb] which has 2 directors: Mark Andrews, Brenda Chapman (technically 3 with Steve Purcell as co-director).
In my renaming scheme I use this:

Code: Select all

{n.colon(" - ") + " ($y, $director)"}
as folder name, and this has lead to the movie being processed in two separate folders:

Code: Select all

Brave (2012, Brenda Chapman)
Brave (2012, Mark Andrews)
How can I avoid this?
I only work in black and sometimes very, very dark grey. (Batman)
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: More than one Director

Post by kim »

weird

try:
info.Director
info.Directors.first()
info.Directors.join(', ')
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: More than one Director

Post by devster »

Thanks, that seems to work, I changed the binding in my format.
It might be a nice addition to the default "director" binding a second "directors" binding to seamlessly do this.
Not necessary by any means though.
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: More than one Director

Post by rednoah »

1.
FileBot cannot create two different folder structures / destination file from one single input file. Do you have logs or screenshots?

2.
The {director} binding will just give you the first director. {info} can be used for less common attributes. If it comes up more than once, then I'm inclined to add a directors binding.
:idea: Please read the FAQ and How to Request Help.
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: More than one Director

Post by devster »

I apologize, my explanation wasn't clear.
The 2 folders were created in different runs but this still created a duplicate (probably would have anyway since filenames are different).
In any case it's not a big issue and the {info} is a good solution.

Below the logs for the first run:

Code: Select all

Input: <input folder>/movies/Brave.2012.1080p.BluRay.x264-REFiNED/refined-brave-1080p.mkv
Group: [mov:brave 2012] => [refined-brave-1080p.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [<input folder>/movies/Brave.2012.1080p.BluRay.x264-REFiNED/refined-brave-1080p.mkv]
[KEEPLINK] from [<input folder>/downloads/movies/Brave.2012.1080p.BluRay.x264-REFiNED/refined-brave-1080p.mkv] to [<output folder>/Media/Movies/Brave (2012, Mark Andrews)/Brave (2012) [1080p x264 - 5.1 AC3 English - BluRay]-REFiNED.mkv]
Processed 1 files
and the second run:

Code: Select all

Input: <input folder>/movies/Brave (2012) [1080p]-DON/Brave.2012.1080p.Bluray.DD5.1.x264-DON.mkv
...
Group: [mov:brave 2012] => [Brave.2012.1080p.Bluray.DD5.1.x264-DON.mkv]
...
Rename movies using [TheMovieDB]
Auto-detect movie from context: [<input folder>/movies/Brave (2012) [1080p]-DON/Brave.2012.1080p.Bluray.DD5.1.x264-DON.mkv]
[MOVE] from [<input folder>/movies/Brave (2012) [1080p]-DON/Brave.2012.1080p.Bluray.DD5.1.x264-DON.mkv] to [<output folder>/Media/Movies/Brave (2012, Brenda Chapman)/Brave (2012) [1080p x264 - 5.1 AC3 English - BluRay]-DON.mkv]
Processed 1 files
I only work in black and sometimes very, very dark grey. (Batman)
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: More than one Director

Post by kim »

then you need this or it can happen again
{info.Directors.sort().join(', ')}

FYI not same file or the "group" got F'd up
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: More than one Director

Post by devster »

Thanks, the DON release is for seeding.
I only work in black and sometimes very, very dark grey. (Batman)
Post Reply