Plex (but with collection folders)

All about user-defined episode / movie format expressions
Post Reply
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Plex (but with collection folders)

Post by Yammers »

Hi there

is it possible to use the [plex] tag but to modify so it does the following.

i want Iron man films to go into 1 folder

example

Iron Man
- Iron man
- Iron man 2
- iron man 3 (year of the film.)

Any ideas
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex

Post by Yammers »

Or Batman
- batman
- batman returns

Batman Darknight
-batman begins
-bathman dark knight rises
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

You can use the {collection} movie collection binding for that.

e.g.

Code: Select all

Movies/{collection}/{plex.tail}
:!: Note that using movie collection folders means that you're no long strictly adhering to the {plex} standard, which may, or may not, pose a problem for 3rd party software that expects files to be organized in a certain way.
:idea: Please read the FAQ and How to Request Help.
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

Thanks i will try this but i am trying to do it show

if there is only one film it does not lable it as a collection. only if there is more than one film in that folder that why i want to do the layout above
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

Yammers wrote: 06 Dec 2019, 20:57 if there is only one film it does not lable it as a collection. only if there is more than one film in that folder that why i want to do the layout above
Yes. It does. If {collection} is undefined, then it's not there, leaving just Movies/{plex.tail} as usual.


:?: What layout do you want for movies with collection? What layout do you want for movies without collections? Feel free to give precise examples for what you want. ;)
:idea: Please read the FAQ and How to Request Help.
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

OK i will try that, but this is what i am trying to do for multiple movies if it makes more sense

I unfortunately do not like the [plex] format. as it puts every single movie in its own individual folder. and i think that is messy. that why i want an expression to do the following.

Create folder name called Alien or Aliens then in that folder move the mp4 file into it for Alien1,2,3,4 etc. i do not want individual folders for each movie. unless it is just a single film. but i still want the video file to be named Alien (then the year)
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

In other words i do not want to it to name the folder Alien Collection. I just want to see the word Alien then the movies inside that folder.
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

Format:

Code: Select all

Movies/{collection}/{plex.name}
Example:

Code: Select all

Movies/Alien Collection/Alien (1979).mp4
:idea: Please read the FAQ and How to Request Help.
ZeroByDivide
402
Posts: 157
Joined: 16 Dec 2014, 01:39

Re: Plex (but with collection folders)

Post by ZeroByDivide »

rednoah wrote: 07 Dec 2019, 15:53 Format:

Code: Select all

Movies/{collection}/{plex.name}
Example:

Code: Select all

Movies/Alien Collection/Alien (1979).mp4
From my understanding what he is wanting is something like:

Code: Select all

Movies/Alien/Alien (1979).mp4
Movies/Alien/aliens (1986).mp4
Movies/Alien/Alien³ (1992).mp4
Movies/Alien/Alien Resurrection (1997).mp4
kim
Power User
Posts: 1046
Joined: 15 May 2014, 16:17

Re: Plex (but with collection folders)

Post by kim »

Search and you will find:
viewtopic.php?f=8&t=9691
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

Yes that is what i am looking for

Code: Select all

Movies/Alien/Alien (1979).mp4
Movies/Alien/aliens (1986).mp4
Movies/Alien/Alien³ (1992).mp4
Movies/Alien/Alien Resurrection (1997).mp4
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

Format:

Code: Select all

Movies/{collection.before(/Collection/)}/{plex.name}
Example:

Code: Select all

Movies/Alien/Alien³ (1992)
:idea: Please read the FAQ and How to Request Help.
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

Thank you

Would it make much difference if i added the anycollection in there at all or would that not work
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

Sure. Why not?

More importantly, list examples for things that you want, and explain how the solution given above isn't already what you want. ;)
:idea: Please read the FAQ and How to Request Help.
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

What you have done works fine, i was just woundering as i have used it before the anycollection+ could that be used in conjuction with what you have done above
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

:?: :?: :?: You mean something like this?

Code: Select all

any{collection}{'No Collection'}

:arrow: You can do anything. Show me the code and I'll tell you if it makes sense to me or not. ;)
:idea: Please read the FAQ and How to Request Help.
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

any{collection}{n+'('+y+')'}}/{n} {'('+y+')'}{' CD'+pi,

this is what i use to use but i did not like it naming the folder Alien collection. so can i use the any command in conjunction with yours

Movies/{collection.before(/Collection/)}/{plex.name}

Example Movies/any{collection.before(/Collection/)}/{plex.name}
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

any{}{}... only makes sense if there's more than one option.


e.g. use collection folder for collections, or default to name/year folder otherwise:

Code: Select all

{
	any
		{collection.before(/Collection/)}
		{ny}
}

This will always create a 3-level file and folder structure, with either a collection folder, or a name/year folder:

Code: Select all

Movies/any{collection.before(/Collection/)}{ny}/{plex.name}
:idea: Please read the FAQ and How to Request Help.
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

Can you give me an example please of what you meanby 3- level folder
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

Is there a [Plex.collection] tail or can this be a suggestion for a future update
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

Yammers wrote: 09 Dec 2019, 20:57 Can you give me an example please of what you meanby 3- level folder

Code: Select all

Movies/Alien/Alien³ (1992)
1 ... Movies
2 ... Collection
3 ... Name/Year


Yammers wrote: 09 Dec 2019, 21:07 Is there a [Plex.collection] tail or can this be a suggestion for a future update
No. Simply because {plex} is the Plex naming standard. The Plex naming standard does not specify collection folders. You can't have collection folders and strictly adhere to the Plex naming standard at the same time. It's either one or the other.
:idea: Please read the FAQ and How to Request Help.
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

What would you go with , custom like i am already using or plex standard
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: Plex (but with collection folders)

Post by Yammers »

So what is better plex naming scheme or custom.

Is is possible to create a naming scheme that like a tv sereis but for Movies using plex binding

example Movies> Star Trek Orginal Film Series (Date Range)>Startrek Motion Picture (Year)
User avatar
rednoah
The Source
Posts: 19127
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex (but with collection folders)

Post by rednoah »

1.
Are you using Plex? Then use {plex} without modification, so that Plex can easily interpret the file paths without ambiguity.
Are you using Kodi? Then use {kodi} without modification, so that Kodi can easily interpret the file paths without ambiguity.

Otherwise, do whatever is pleasing to your eyes. ;)


2.
Yes, everything is possible. The {cy} collection years binding makes this one particularly easy.
:idea: Please read the FAQ and How to Request Help.
Post Reply