Page 1 of 1

Plex (but with collection folders)

Posted: 05 Dec 2019, 22:35
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

Re: Plex

Posted: 05 Dec 2019, 22:39
by Yammers
Or Batman
- batman
- batman returns

Batman Darknight
-batman begins
-bathman dark knight rises

Re: Plex (but with collection folders)

Posted: 06 Dec 2019, 05:30
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.

Re: Plex (but with collection folders)

Posted: 06 Dec 2019, 20:57
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

Re: Plex (but with collection folders)

Posted: 07 Dec 2019, 04:33
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. ;)

Re: Plex (but with collection folders)

Posted: 07 Dec 2019, 13:36
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)

Re: Plex (but with collection folders)

Posted: 07 Dec 2019, 13:40
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.

Re: Plex (but with collection folders)

Posted: 07 Dec 2019, 15:53
by rednoah
Format:

Code: Select all

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

Code: Select all

Movies/Alien Collection/Alien (1979).mp4

Re: Plex (but with collection folders)

Posted: 07 Dec 2019, 18:34
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

Re: Plex (but with collection folders)

Posted: 08 Dec 2019, 01:32
by kim
Search and you will find:
viewtopic.php?f=8&t=9691

Re: Plex (but with collection folders)

Posted: 08 Dec 2019, 18:20
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

Re: Plex (but with collection folders)

Posted: 08 Dec 2019, 19:18
by rednoah
Format:

Code: Select all

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

Code: Select all

Movies/Alien/Alien³ (1992)

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 18:08
by Yammers
Thank you

Would it make much difference if i added the anycollection in there at all or would that not work

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 18:28
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. ;)

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 19:37
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

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 19:40
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. ;)

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 20:35
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}

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 20:40
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}

Re: Plex (but with collection folders)

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

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 21:07
by Yammers
Is there a [Plex.collection] tail or can this be a suggestion for a future update

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 21:23
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.

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 21:25
by Yammers
What would you go with , custom like i am already using or plex standard

Re: Plex (but with collection folders)

Posted: 09 Dec 2019, 23:19
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)

Re: Plex (but with collection folders)

Posted: 10 Dec 2019, 05:22
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.