Page 1 of 1

Sort movies automaticaly into set folder

Posted: 14 May 2019, 20:14
by anton
Create a funtion to sort movies in there sets. For example:

movies in one folder:
/Star Wars: Episode II - Attack of the Clones (2002).mkv
/Star Wars: The Force Awakens (2015).mkv

Get movie set infos from TMDB by movie. For example:
https://www.themoviedb.org/collection/10
Create movie set folder and put the movies into the set folder:

/Star Wars Collection (1977-2019)/Star Wars: Episode II - Attack of the Clones (2002).mkv
/Star Wars Collection (1977-2019)/Star Wars: The Force Awakens (2015).mkv

Is that feature possible to implement
thanks anton

Re: Sort movies automaticaly into set folder

Posted: 15 May 2019, 02:15
by rednoah
1.
If you don't care about the years, then it's easy:

Code: Select all

{collection}/{ny}

2.
If you do care about the years then it's probably still possible, but significantly more tricky, the {model} binding might help:
viewtopic.php?f=5&t=9814

e.g.

Code: Select all

{model.findAll{ it.collection == collection }.y.bounds()}
:idea: This one only considers the movies years currently being processed though, so you'll need to process the entire collection in one go for it to work the way you want.



EDIT:

r6317 introduces the {cy} collection years binding to make this particular use case easier in the future.

Re: Sort movies automaticaly into set folder

Posted: 15 May 2019, 16:04
by anton
Perfect, thank you so much