Page 1 of 1

Sort by Collection an Movie Folder

Posted: 19 Aug 2015, 13:32
by erik
Hello,

I have a simple question for edit formats. I want to sort Folders by Movie Collection and Movies like this:

Image


As you can see in the picture "new names" it works for the folder "movie collection". But the problem is that the normal movies were not moved in the folder "movies" they only have an own folder named by the movie itself. To understand the problem I marked the different file levels in the colours which you can see above (1st level blue, 2nd red, 3rd yellow).
Image


this is my code

Code: Select all

E:{"/Filmkollektion/" + "$collection"}/{n} ({y}) {genres.take(2)} - IMDB {rating}/{n} ({y}) {genres.take(2)} - IMDB {rating}  {'- Part '+pi}

Re: Sort by Collection an Movie Folder

Posted: 19 Aug 2015, 23:17
by rednoah
Nice illustration. Much appreciated.


Here's my solution:

Code: Select all

{any{'Movie Collection/'+collection}{'Movie'}}/{n} ({y})
@see viewtopic.php?f=5&t=1895

Re: Sort by Collection an Movie Folder

Posted: 27 Aug 2015, 17:28
by erik
perfekt - it´s works !

Code: Select all

{any{'E:/Filmkollektion/'+collection + '/' + n + ' (' + y + ' - ' + info.Genres[0] + ' - IMDB ' + rating  + ')' + any{' - Part '+pi}{''}}{'E:/Filme/'+ n + ' (' + y + ' - ' + info.Genres[0] + ' - IMDB ' + rating  + ')/' + n + ' (' + y + ' - ' + info.Genres[0] + ' - IMDB ' + rating  + ')'}}
Thanks !

Re: Sort by Collection an Movie Folder

Posted: 29 Aug 2015, 19:47
by garyleecn
erik wrote:perfekt - it´s works !

Code: Select all

{any{'E:/Filmkollektion/'+collection + '/' + n + ' (' + y + ' - ' + info.Genres[0] + ' - IMDB ' + rating  + ')' + any{' - Part '+pi}{''}}{'E:/Filme/'+ n + ' (' + y + ' - ' + info.Genres[0] + ' - IMDB ' + rating  + ')/' + n + ' (' + y + ' - ' + info.Genres[0] + ' - IMDB ' + rating  + ')'}}
Thanks !

so if put it into amc script, how would it look like?

like


/usr/local/bin/filebot -script fn:amc --output /Volumes/Data/Videos/ --action move --db OpenSubtitles -non-strict /Volumes/Cache/Completed/ --def "seriesFormat=/Volumes/Data/Videos/TV Shows/{n}/Season {s} ({y})/{n} {s00e00} - {t} {(airdate)}" "movieFormat=/Volumes/Data/Videos/Movies/{n}/{n} [{vf}.{ac}.{source}]"

where do i put your codes?