Separating movies and collections

All about user-defined episode / movie / file name format expressions
Post Reply
TrueTenacity
Posts: 14
Joined: 28 Feb 2017, 15:19

Separating movies and collections

Post by TrueTenacity »

Hi there, new to this filebot app, I was using media companion but after it screwed up my media library something awful, never again.

Running the latest version on W10 x64

I'm trying to keep all the movie collections in one folder and the rest sorted into alpha folders.

I followed the forum posts and think this is right, but gives me a weird error instead of working...

Code: Select all

d:/Movies/{any{Collection}{"($y) $n.colon(" - ") ($vf)"}}/{n =~ /^(?i)[a-z]/ ? n[0] : '#'}/{n.colon(" - ")} ({vf}) ({y})
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Separating movies and collections

Post by rednoah »

TrueTenacity wrote:gives me a weird error instead of working...
Please take a screenshot. I'm curious what a weird error looks like. :lol:


This should be more or less the format you were thinking of:

Code: Select all

Movies/{az}/{any{collection}{plex[1]}}/{plex[2]} [{vf}]
:idea: Please read the FAQ and How to Request Help.
TrueTenacity
Posts: 14
Joined: 28 Feb 2017, 15:19

Re: Separating movies and collections

Post by TrueTenacity »

I'm not much into coding so yeah, it's weird to me

Image
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Separating movies and collections

Post by rednoah »

Strictly speaking, bindings are case-sensitive.

I recommend using them as documented:
Image
:idea: Please read the FAQ and How to Request Help.
TrueTenacity
Posts: 14
Joined: 28 Feb 2017, 15:19

Re: Separating movies and collections

Post by TrueTenacity »

Epic, working perfectly!

Thanks
TrueTenacity
Posts: 14
Joined: 28 Feb 2017, 15:19

Re: Separating movies and collections

Post by TrueTenacity »

Please can someone point out what I am doing wrong...

Code: Select all

d:/Movies/{az}/if({any{collection}{{plex[1]}){/{plex[1]}/{plex[2]} {- pi}[{vf}]}}} else {{/plex[1]}/{plex[2]}}}
I'm trying to use 2 different naming schemes depending on if the movie is in a collection or not.

I was using the naming scheme provided earlier, but it ends up with the movies all falling under the collection folder if in a collection and in a folder without a collection.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Separating movies and collections

Post by rednoah »

1.
Use the Format Editor and start with something simple:

Code: Select all

any{collection/plex.name}{plex.tail}

2.
Your format has many issues. Please have a close look at the examples and documentation, and build your format step by step.

@see viewtopic.php?f=5&t=1895
@see viewtopic.php?f=5&t=4191
@see viewtopic.php?f=5&t=2
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Separating movies and collections

Post by kim »

Code: Select all

Movies/{any{'Movie Collections/'+collection+'/'+plex[1]+'/'+plex[2]} {az+'/'+plex[1]+'/'+plex[2]}} [{vf}]
Post Reply